FORT WORTH, Texas (AP) — Carrying photos of their loved ones into court last week, family members of victims killed in Boeing 737 Max crashes urged a judge to reject a deal that would spare the company from criminal prosecution.

Some of the relatives of the 346 victims — killed in crashes off the coast of Indonesia and in Ethiopia less than five months apart in 2018 and 2019 — saw the hearing as their final chance to demand a public trial.

That’s because U.S. District Judge Reed O’Connor is weighing whether to approve the federal government’s motion to dismiss its criminal case against Boeing. The judge said after hearing from the relatives and attorneys for both the Justice Department and Boeing that he would issue a decision at a later date.

In exchange, the company said it would pay or invest another $1.1 billion in fines, compensation for the crash victims’ families, and internal safety and quality measures.

Boeing is charged with conspiracy to defraud the federal government after allegedly misleading Federal Aviation Administration regulators about a flight-control system tied to the crashes.

The hearing came more than four years after the Justice Department announced it had charged Boeing and reached a $2.5 billion settlement with the aircraft maker. That deal would have protected Boeing from criminal prosecution if it strengthened its ethics and legal compliance programs, but prosecutors revived the charge last year after deciding the company had violated certain terms of the agreement.

Boeing decided to plead guilty as part of a different agreement, but O’Connor rejected that deal in December. Prosecutors spent months renegotiating with Boeing, and in late May the two sides struck the latest deal that takes the criminal charge and Boeing’s guilty plea off the table.

The Justice Department said it offered those terms in light of “significant changes” Boeing has made to its quality control and anti-fraud programs since last summer. It said the agreement also served the public interest more effectively than taking the long-running case to trial and risking a jury verdict that might spare the company further punishment.

More than a dozen relatives spoke last week, some of whom traveled to Texas from as far as Europe and Africa. They are among nearly 100 families who oppose the agreement and want the judge to appoint a special prosecutor to take over the case since the Justice Department said it would not move forward with the charge even if O’Connor refuses to dismiss it, according to court documents.

Attorneys for both the Justice Department and Boeing urged the judge to accept the agreement.