Config checking should be outside the class.