Minor loop optimization.