Move setup out of stub block

The stub was affecting the search for the groups, tada.