More efficient for loop.