for -> while loop. Seem to get more consistent performance.