Simplify loop.