DULUTH, Minn. (AP) — The U.S. Coast Guard says an agreement has been reached that will let a German-operated cargo ship leave the Lake Superior port of Duluth, where it had been detained for over a month due to alleged environmental violations.

A Coast Guard spokesman, Petty Officer 3rd Class Christopher Yaw, said Thursday that the only information he has is that an agreement has been reached and that the M/V Cornelia is making preparations to depart. He says he has no information on when the ship will leave or any details of the agreement.

The Cornelia was allowed to dock Thursday after more than a month at anchor just outside the Duluth harbor. A spokeswoman for the Duluth Seaway Port Authority, Adele Yorde, says ship should be ready to depart before noon Friday.