Using a LinkedHashSet and a PriorityQueue, instead of a HashSet and a TreeSet. If those two collections get out of sync, dont crash the server with a IllegalStateException, but try to recover