Support specifying the output file