The Writers Guild of America (WGA) and major Hollywood studios have reached a preliminary agreement. It will put an end to the strike that lasted 146 days, reports Los Angeles Times.

The proposed three-year contract provides for an increase in wages for screenwriters, as well as the introduction of new rules on the use of artificial intelligence in work. The document must now be ratified by 11,500 union members.

“We can say, with great pride, that this deal is exceptional — with meaningful gains and protections for writers in every sector of the membership,” the WGA negotiating committee said in a Sunday night message to its members.

After reaching a preliminary agreement with the WGA, Hollywood is expected to try to speed up negotiations with the 160,000-strong SAG-AFTRA actors’ union. The actors have been on strike since mid-July, and the protest has reached a deadlock.

The writers’ strike began in May, and the Writers Guild of America was unable to conclude a new agreement with the studios by May 1, while the previous contract expired. This had a negative impact on the film industry, as some projects were delayed due to the strike.