Another optimization. Shaves approximately 10% off running time.