Fixed setup for loop