Modified to use goleveldb.