Invert the for loop