Add the cpg_data:get_groups/3 function.