Added default name from input file if none is given