Example for using CallbackEventHandler