Updated to create xml file.