Use existing error-stats class than replicate it