First working version of heatmaps