Finalized getStatistics.