Added error and rare event differentiation