Implemented syncing groups and rooms.