Fine tuning the stat generation algorithm to consider class