Fleshed out the index framework.