Fixes to credit reduction script, added balance limit to the credit field