Fixed bad loop and call to print function
Updated MBO implementation