Added function of ability to save files