Making getOutput compliant