Implementing setting saving