Added StorageEvent class, some changes.