New chunk indexing and sending algorithm