Loading stats from xml files when writing stats to xml.