WIP: Refactoring _uploadChunk