Added option to generate a heatmap.