Added some loops