Script returns correct group name