Companies are spending more to defend themselves against class actions as the cases get significantly riskier, according to a survey conducted by Florida law firm Carlton Fields.

The companies surveyed reported that the number of “bet-the-company” and “high-risk” class actions against them increased from 9.5 percent of the cases they faced in 2015 to 25.3 percent in 2016. Carlton Fields surveyed 373 companies across several industries, with median annual revenue of $4.9 billion.