Add rootname method.