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: Business Owner Hopes Philadelphia's Penn’s Landing Stays Safe Following Triple Shooting That Injured 3 Teenagers

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: Marple Township Police Asking For Public's Help To Find Missing Businessman

“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: Philadelphia School District's Mask Mandate Goes Back Into Effect On Monday As COVID-19 Cases Rise