Added a get_nodes and get_leaf_node.