Added localStorage for ID.

Added a storage mechanism for the ID.