The U.S. Coast Guard has opened a criminal investigation into the MSC Poesia over an alleged illegal oil discharge while separately clearing the cruise ship to leave the Port of Miami after deficiencies were corrected, according to CBS News reporting on the investigation and its earlier report on the vessel’s detention and release.

The investigation concerns a suspected “magic pipe” arrangement, in which oily waste is transferred into a ship’s gray-water system before discharge at sea. CBS News reported that the inquiry could examine crew members, the vessel’s owner and others who may have been directly involved. The allegation has not been established as a final finding.

The Coast Guard detained the foreign-flagged ship earlier in November after identifying deficiencies with systems aboard the vessel. Marine inspectors oversaw corrective actions, and the agency then verified that the safety and environmental deficiencies had been addressed before allowing the ship to depart with passengers or crew.

That clearance does not end the criminal probe. It reflects the vessel’s ability to leave port after the cited deficiencies were corrected, while investigators continue examining whether federal environmental law was violated.

The cruise the ship had been preparing to begin was canceled after the detention. MSC Cruises said passengers received full refunds and were being helped to return home. A source cited by CBS News said more than 2,000 people were aboard when the ship was detained; the company lists capacity of more than 3,200 passengers and over 1,000 crew members.

The immediate affected service was the canceled Miami cruise and the passengers’ travel home. The next official step identified in the reporting is the Coast Guard’s criminal investigation; neither source reports a completed enforcement decision or final finding against MSC Poesia or its operators.