Added non-volatile storage of settings.