Now removes any duplicates that it finds when searching using xpath.