Algoritmer för att undvika onödiga chocker- Hur fungerar