Use setOuput instead of modifying constructor