Small fix in loopGenerator.
Removed some debug code.