Changed local storage function names and added delete function.