Working on generating unduplication logic.