instead of manual loop.
Merge pull request #55 from zeffii/patch-2

instead of manual loop.