Support for specifying the output file to write to