Now using temporary directory for output data.