Moved modification to outputDir