Improve settings and local_settings sample