Accepts both .xml.gz and .xml files now