Changes to how preferences get saved and refreshed