Added a loop script