Changed setOutputFields to support method chaining