Debugging dedup function.