One month into a three-year sentence at Otisville Correctional Facility in upstate New York, Michael Cohen has settled into something of a rhythm. Between the wake-up call at 6 a.m. and lights out at 11:30, Cohen sorts through hundreds of letters people have sent him, some of which he shares with other inmates. He has been assigned a job working on the prison’s HVAC system, works out in the gym four times a week, and has read more than 15 books so far, including Licensed to Lie: Exposing the Department of Justice and Unbroken: A World War II Story of Survival, Resilience, and Redemption, which he donates to the prison library once he’s finished. And he’s begun to write some of his own story.

He is also turning the page on one chapter of his former life. On June 6, Cohen signed a settlement agreement with Stormy Daniels to throw out two cases she had filed against him more than a year earlier stemming from an alleged affair she had with Donald Trump and a nondisclosure agreement she signed on the eve of the 2016 election to keep quiet in exchange for $130,000. Cohen is serving out his sentence, in part, because of his involvement with the scheme.

The settlement represents a quiet end to his year of spectacular political fireworks. According to a copy of the document that I reviewed, which was signed by Cohen but not yet by Daniels, they entered into the agreement “to avoid the expense and inconvenience of litigation,” and for that purpose alone. Neither party is asserting any liability in the matter. The document states that Cohen and Daniels are each responsible for their own costs associated with the suit and for their own attorneys’ fees related to the complaint. Her lawyer declined to comment on the agreement. (The suits were initially filed by Daniels’s former attorney, Michael Avenatti, who last month was charged by prosecutors in the SDNY with misappropriating nearly $300,000 owed to Daniels for her book advance and using the money to cover his hotel stays, monthly payments on a Ferrari, and dry cleaning. Avenatti denied any wrongdoing.)

A federal court in California had already thrown out two related lawsuits. Last fall, U.S. District Judge James Otero ordered Daniels to pay the president $293,000 in legal fees when he dismissed a defamation suit that she filed against Trump. In March, Otero declared that Daniels’s lawsuit against Trump to void her NDA was moot because she had already “received exactly what she wanted” when Trump and Cohen agreed that they would no longer seek to enforce it. The agreement Cohen signed earlier this month also settles a third suit, in which Daniels accused him of colluding with her former attorney, Keith Davidson, against her interests when they negotiated the hush-money payment. Daniels settled with Davidson on that complaint last month.

In a statement, Cohen told me he agreed to settle because he no longer intends to expend legal fees and energy to fight a war of Trump’s making. “Why would I continue to defend and protect the man who continuously attacks me and my family?” he said. “It’s time he answers to the American people for his own dirty deeds.”

Cohen appears to have found his way around Otisville. Three people who have gone to see him independently told me that, on their visits, a steady stream of inmates approached them to talk to Cohen, to say hello and reassure them that he is doing okay. “It’s a mini version of what it’s like to go with Michael to Freds,” one person recalled, referring to the restaurant atop Barneys in Manhattan, where Cohen would frequently have lunch before he surrendered himself in May.