Started to add saving to xml file