Updated to use /tmp/ for the file export.