Setting config in LifeCycle.