Removed unnecessary loop.