Update export file script. Finalize operation