Adding reading by chunks
Bug Fixing for chunk reading