Changed dup-detection code to keep the first item in the user's args.