Putting messages and groups into tables.