Added a save to file feature.