Actually if I provide an output file, I want to write to the file