Move statistics analysis to other class.