Prepared the indexing layer