By Paul Kurtz

VALLEY FORGE, Pa. (CBS) — Tredyffrin Township officials have reached a settlement with the Pennsylvania Department of Environmental Protection over an aging sewage pipe that has ruptured several times in recent years.

READ MORE: Prosecution To Rest Case Monday In Corruption Trial Of Labor Leader John Dougherty, City Councilmember Bobby Henon

The township has agreed to pay a $110,000 fine and replace the pipeline that ruptured twice last winter in Valley Forge National Park. Twenty-one million gallons of raw sewage spilled into Valley Creek.

When township officials first dragged their feet on addressing the issue, environmentalists and fishing enthusiasts threatened to drag them into court.

READ MORE: SportsLine Week 8 NFC East Picks: 'Everybody Is Piling On The Cowboys, And You Can't Blame Them,' Says Larry Hartstein

“We think the settlement is good for Valley Forge,” says David Masur, director of Penn Environment. “We think it’s good for the Valley Creek. We didn’t necessarily want to see the inside of a courtroom if we could resolve this in a comprehensive way without starting a lawsuit.”

Masur says the settlement also sets up an emergency response plan if there’s another rupture before work begins on a new pipeline in 2016.

MORE NEWS: In-Person Learning To Remain Open If SEPTA Strike Occurs, Philadelphia School District Says