Changed for loop.