Made the settings object to save to a parameter.