Changing loop numbers