Source file for Tree (no threading yet)