Adapted the configuration precedence order to match what actually happens