Changed Lists to Sets to avoid multiple bag exception.