Made stat methods generic.