Sanitized user input and made preferences persistent.