Changes to use Alpstein MBUtil and fixes for bugs