Changed output to XML