A bill aimed at curtailing expenses related to out-of-pocket emergency medical charges was signed into law on Thursday by Gov. Andrew Cuomo.

The measure will require health insurance companies ensure that when policyholders and enrollees receive care from another provider, the patient will not be charged with larger out-of-pocket costs they would have incurred from a participating provider.

“In an emergency, every second counts and its ridiculous to expect someone facing a potential life or death situation to first check and see if a hospital is part of their health insurance network,” Cuomo said in a statement. “With this new law, insurers will need to do the right thing and make sure patients aren’t strapped with excessive and potentially debilitating out-of-pocket costs tomorrow simply because they needed emergency room care today.”

Meanwhile, the bill requires charges for emergency services at hospitals be subject to an independent resolution process, which was previously created by the state’s surprise medical bill law, initially enacted in 2014.

The bill was sponsored by Sen. Liz Krueger and Assemblyman Kevin Cahill.

Updated: The measure’s approval was applauded by the New York State Conference of Blue Cross and Blue Shield Plans

“By signing this bill into law non-participating hospitals will be restricted from charging unreasonably high fees for emergency services that must be paid by insurers, driving up the cost of health insurance for New Yorkers,” the group said.

“A recent Department of Financial Services report revealed that the current out-of-network law has saved New Yorkers hundreds of millions of dollars. It only makes sense for the State to take the lead once again and similarly put an end to excessive hospital bills.”