Added primary group feature.