Made save Preferences a member variable.