Cache modulo operator in New

Instead of recreating the operator in each iterator, we can cache it before the loop.
Merge pull request #1 from mrnugget/patch-1

Cache modulo operator in New