Tweaked TreeLopper logic slightly.