Updating lib to output an xml file