Change function chunk_indices() to get_chunk_indices() because chunk_indices is an item in some functions