Adds for-each loops