Switch from lists to hashsets for faster lookup with large amounts of data