Moved loop call down