Added support for eliminating duplicates (stop_dup_id)