Saving settings and reading settings.