Added a fixed version of read_chunk requires more testing before joining