Added chat functionality