Implemented get_node function