Version 0.1.1: faster balance_check