Condensed code in DistributedStorage.