Simplified init_per_group.
Rewrote RSM's serialization.