Separated outputs into their own functions