Reverted the loop