Expanded the tool to support local and session storages.