Add group detection