Added new argument to save the temp files in a directory for further inspection