Added the ability to set the result file format, we now always default to XML.