Reworded to: and write output files to the temporary directory `outputDir`.