Stat calculations modified.