Add duplicate version check