Updated the loop.