Added loadTree() method