ACCESS: Split doCredit in two, putting demo code in a separate function