Cleaning up for loops