Active code selection