Removed unused loop