File based saving of stats