Change the function GetGroups