Improved this for loop.