A set of helpful statistic functions.