Added to XML function