Use proper for loop