Improve the chat functionality.