Review code of index class and add operation for Units table. But is not ready
for full working now.