Merge changes to getbalance_MP