First porting of Group api (second revision after Bruno feedback)