Basic tree structure works. Still needs work.