More concise logic for configuration.