Add support for the maxium encoded length of groups.