Added chat handling for networking