Added check for duplicate entries in import