Refined dupe detection a bit