Heres the Output function