Added code for amount balance.