Added function to store user settings