Updated SetOutputs method