Update code so syntax is OK now.
Added new mechanism for update config.