(TTA) Move all file writings in the TTABackend class.