Add extension method.
Use hashset for quick lookups.