Adding duplicate removal