Remove unnecessary loop.