minimally invasive safety algorithms