Added FOR and FOREACH loops