LoopGenerator finished and tested.