Changed balance check to be inside synchronous code