Adding config handling.