Need to remove this fixed `tmp_file` name from the code. It should generate an unused file name as needed.
Need to remove this fixed
tmp_filename from the code. It should generate an unused file name as needed.