CHARLOTTE, N.C. (AP) — Colonial Pipeline faces a fine of $200,000 a day if it fails to improve the way it detects leaks in its U.S. pipeline system following a massive gasoline leak in North Carolina, according to an agreement with the U.S. Department of Transportation.

Colonial is under an order to find and use a better leak detection system across its entire network, citing several newly disclosed leaks over the years, The Charlotte Observer reported.

Meanwhile, State Sen. Natasha Marcus, D-Huntersville, said Colonial faces separate potential action by the state Department of Environmental Quality for the August 2020 leak in Mecklenburg County’s Oehler Nature Preserve.

The spill was among the worst in the state, Michael Regan, then-NCDEQ secretary, said in September. Regan now heads the U.S. Environmental Protection Agency.

The company eventually reported that almost 18 times more gasoline leaked from its pipe than its original estimate, according to the June 15 settlement with the U.S. Department of Transportation’s Pipeline and Hazardous Materials Safety Administration.

Colonial said in a statement that it began to “implement learnings from the Huntersville incident almost immediately after it occurred.”

“The consent agreement outlines a number of steps that Colonial has agreed to undertake and we appreciate the opportunity to settle this matter following consultation with PHMSA,” Colonial said.