Update the settings logic