Changed unnecessary SortedSet for List.