Allow headless operation by providing an output file name.