Add detection of incorrect config