Adding code to prevent writing a new file unless the translation has changed.