Fix callback and events to work as define in cylon.