Changed for loop syntax.