Added initial _getGroups functionality