Improved support for saving edits to file.