Use setOutput instead of modifying constructor 2