Make duplication check work