Added a print callback