Added a call to local storage