EG: extracted BlkIndex to simplify testing.