Added XML file persistence