Add 'root' method to get root node.