Add ranges to for loops