Save changes to local storage.