Calculating own statistics.