More algorithm speedup.