Created 'doHeatMap' function to reduce some repetition...