Simplify several loops.