First working version of Indexer