Removed unnecessary loop