Added Chatmessage functionality