Added on_error, on_question and on_count callbacks