Updated old-style for loops
Fixed indentation