Try to store scanning information into localstorage