Fixes #46
Removed unnecessary loop