Chat backend mostly done.