New implementation of StatisticUnit. Collect additional info during inference