Support for optional root node.