Replace shoddy preemptive leaf detection.