Auto generating the output file name