Converting write_chunks in client to send results to master