Add option to save statistics to file
Add option to save statistics to file