Quick and dirty duplicate detection.
More TODOs.