Simplify the loop.