Added APPNAME and SETTINGS_KEY