Works with multiple groups.