ErrorDetectionWidget: Optimization