Testing the loop