Initial loadSettings/saveSettings code.