Rewrite most of nChat.