Simplify "cross" loops