Handle subs in stat calculations