Cleanup and prepare tree finder