Modified for HyperLevelDB