Implemented chat routing and statistics