Basic tree structure done.