Smarter way of finding the general group