MID codes