Implement read-chunk.