Finished heatmap distance and output