Add printf function to handle ouput on standard output