Add setConfig method to Config.