Modified structure service to skip root nodes according to recurse parameter.