Collecting statistics.