Added saving in localStorage.