Added output file name option.