Added function temp_file.