Add tree structure