Tweaks to the 'best' algorithm.