Added function check for getgroups.