Three weeks before its scheduled trial date, the lawsuit over the Aaron Sorkin-penned Broadway adaptation of To Kill a Mockingbird has been settled. The estate of book author Harper Lee and producer Scott Rudin’s Rudinplay announced the deal today (read the settlement filing here).

A New York judge had set a June 4 trial date for the legal dispute in which Lee’s estate claimed the lauded writer’s new production strays too far from the source book, though the producers promised it wouldn’t.

The two sides said in a joint statement today that the they “amicably settled ongoing litigation” and that the Broadway production remains on track to begin previews November 1 at the Shubert Theater and open December 13. The Bartlett Sher-directed play is set to star Jeff Daniels — who won an Emmy for playing the lead in Sorkin’s HBO series The Newsroom — as Atticus Finch.

The original lawsuit, according to The New York Times, came after Lee estate executor Tonja B. Carter saw a draft of the script, which seemingly portrays protagonist Atticus Finch as an apologist for the racial status quo rather than the ever-wise, benevolent lawyer depicted in the book. The suit, filed in Alabama, says the agreement signed by Lee in 2015 — eight months before her death at age 89 — called for the adaptation to “remain faithful to the spirit of the book,” according to the paper.

That legal action didn’t sit well with the play’s producer Scott Rudin, who filed a $10 million countersuit two weeks ago seeking dismissal of the Alabama suit, claiming that it could shoot down the anticipated Main Stem adaptation. It claims that investors “are not willing to invest millions of dollars when a cloud exists” over the Aaron Sorkin-penned stage adaptation and says the only way to avoid a devastating financial debacle would be to settle the dispute quickly.

Judge Analisa Torres of Federal District Court in Manhattan ruled Monday that if the Alabama judge allows that suit to go forward, that’s where the dispute should be settled. After her decision, the sides met with a magistrate judge to discuss whether a performance of the new adaptation might be used to help resolve the matter. One possibility discussed would see the show videotaped ahead of a live performance in court.