Added a loop