Make output file an optional input.