Revert "Merge loops into one."

This reverts commit 3aa16dec65b1c56861735ac33cc1676a891379a0.