Removed unneeded loop