Commiting the chat functionality working