Using set instead of list.