Moved printIteration inline