Updated file name and file type of output file