Fixed definition of output