Changed for loop