Auto-detection order