Add statistics analyzer class.  Standardize errors