Added the return line to tell the function what to return when running total.