Changed accordingly. The file name is assumed to be the same as the input file name. Therefore, extra characters are appended to it.