Move the increment to the for loop.