Fix dependency placement and remove currentBal variable.