First implementation of indexer