I'd do this in init instead of in addOutput