Started rewriting chatController