Include util.h
Add index_interface and real_index
Add mock_index