Changed the legend statistics to be more accurate.