Began work on clean tree function - based on Skrentny's stuff.
Good luck!