Go back to using HashSets, ArrayLists have awful lookup performance.