Added checkConfig method