Fixed so actually saves in shared preferences.