Added basic indexing functionality with some hard coded stuff just to hack it to work.