Add setting sanitization