Added method setSettings.