Tweaks to the basic difficulty code.