Added resetSettings() function