Add a print handler for refactored callbacks