Scripting around the export