Fixed scripts that are used for export.