Upgrade for for loops.