Added setOutputFormat()