Cabot Oil & Gas Corp. settled a lawsuit filed by two families in Dimock, Pa., who alleged their homes’ drinking water became contaminated with methane not long after the company began drilling for natural gas in 2007.

The Ely and Hulbert families initially won $4.2 million in damages in a federal jury trial in Scranton in 2016, but Magistrate Judge Martin Carlson threw out the verdict as unjustified and ordered the parties to begin settlement talks.

The terms of the settlement have not been made public. Leslie Lewis, the New York lawyer who represented the families, declined to comment on the terms when asked on Sept. 26.

“After nine long years, the plaintiffs are happy and relieved to put the matter behind them,” Lewis told Reuters.

Neither Cabot Oil & Gas spokesman George Stark nor the company’s lead lawyer, Stephen Dillard, could be reached for comment on Sept. 26.

Carlson approved the settlement on Sept. 21, court records show.

Dimock, Pa. was at the heart of the Marcellus Shale gas fracking boom that began in 2007. Residents complained that Cabot’s drilling caused methane gas to migrate to their wells, so much that they could light their tap water on fire.

Flaming tap water in Dimock was the highlight of the 2010 Oscar-nominated documentary, “Gasland,” written and directed by Josh Fox. Residents also complained that their water had turned brown and corrosive.

Cabot contended that there had always been underground methane in Dimock and that there was no proof its drilling had caused the contamination.

“The issues they have are cosmetic and aesthetic,” Dillard told Reuters in 2016. “Those can be treated, but it’s not toxic.”

Out of 15 families that filed a lawsuit over water contamination in 2009, all but the Elys and Hulberts settled with Cabot in 2012.

Lewis said there has been no change in the poor quality of the family’s well water since the trial in 2016.