Added config init to main.