Updated stats function to pull from the stats csv.