Added code to make sure the app doesn't crash when the settings file is missing