Implementing more loop generation.