Save stats to file prototype