Corrected loop.