Loop should not be nailed to generation.

Running the loop should be decoupled from loop manipulation and loop payload, and especially from the details of output generation process.