Replace heatmap with custom implementation