Removed c++11 style for loops.