tonyg #1 Ooops. Sorry Bmax core code has changed since then so I have updated the code above to work on 1.24