Adding support for joining and leaving rooms.