Added chat logging.