Revert "Added a second loop"

This reverts commit 6b450c73e57a653df0cfb8cf24079c28289eaef6.