Add groups serialization