Split settings into local and main settings. #18