Moving output functions into own header file