Heatmap generation on form submission, massive re-factoring of map generation code