Decode groups.