First part of indexing - indexing chunks