Made the config initialization more idiomatic.