Added printf handler.