First version of the indexer