Adding code to change settings via GUI.