Added the total variable for the return to report back to.