LOS ANGELES (AP) — The screenwriters union and Hollywood studios reached a surprise four-year tentative agreement after roughly three weeks of negotiation.

The Writers Guild of America West announced the unanimous approval of the agreement via X, and the Alliance of Motion Picture and Television Producers confirmed the deal on its website.

“We look forward to building on this progress as we continue working toward agreements that support long-term industry stability,” the alliance stated.

While specific terms of the deal are not yet public, it is anticipated to address key issues such as improved health care plans and safeguards against artificial intelligence. The Guild mentioned that the agreement not only protects the writers’ health benefits but also builds upon improvements made in 2023 and aims to tackle the issue of unpaid work.

This contract proposal extends for a year longer than the typical three-year agreements and needs approval from the Guild’s board and its members before it can be ratified.

This surprise agreement comes amidst ongoing negotiations between studios and union leaders representing actors and directors, with contracts set to expire by the end of June. Historically, these negotiations have been contentious, especially given the writers' strike that drastically affected Hollywood operations just a few years prior.

It’s important to note that the Writers Guild of America West is simultaneously dealing with a strike from its own staff union, which has raised allegations of unfair labor practices since February. The outcome of this staff strike remains uncertain and might influence the broader negotiations with the studios.