Auto detect priority.