It is now possible to save metadata to either the current file or specify an optional target file. The file is generated and afterwards moved to the original location, so no corrupt files will be created.