I think the problem with these functions is that lookup_usergroups