3rd param to iterator is 1-based iteration number
Merge pull request #328 from psalaets/issue-294

Fix for #294