Saving data to local storage. WIP 10