Add a state tree.