Add settingslogic