Much better implementation for blocking certain duplications