Set return value before returning