Implemented better configuration check.