Caching the running total
Removed console.log calls.