Updated the syntax for loops