Added some for loops