Refactoring: moving around the code for obtaining the export file.
Changing some build options/settings.