Added issue #5.
Changed nonDuplicate function by duplicate one.