Improved config initialization.