Adding the basic chat functionality