Credit the medianlength algorithm.