Changed container Lists to Sets to avoid duplicates.