Chunk algorythm improvement