Adding tmp extension on the temporary file created