Attempting to integrate the original lee's algorithm.
Getting the NPE problem with node destruction as per my bug.