Add findGroup to the API, use it. Untested.