Introduced error in function debit