Adding configuration detection.