Cleaner calc

Reduced the lines and overhead. Added a print statement to shows what's
happening inside the loop.