Added chat functions