Heatmap works between chunk boundaries...

and check for the end of the file.