1916: Add credit functions should be safe

The add credit functions now determinte whether or not the credit should be
added.