Added saving of accesstypes to XML file.