Changes to update to 3.1.4, add max latency for alerting