Meant to use LinkedHashSet instead of HashSet :(