Provided an interface to handle the chat events.
Improved logging.