Some updates for writing more parameters to the .xml file.