Added 'save file' functionality.