Logic moved from SettingsForm to Program class. SettingsForm can be deleted