Moved file export to background task, and fixed an issue where files were moved rather than copied