Add new method to set and save settings