VIENNA—OPEC and non-OPEC producers led by Russia agreed on Nov. 30 to extend oil output cuts until the end of 2018 as they try to finish clearing a global glut of crude while signaling a possible early exit from the deal if the market overheats.

Russia, which this year reduced production significantly with OPEC for the first time, has been pushing for a clear message on how to exit the cuts so the market doesn’t flip into a deficit too soon, prices don’t rally too fast and rival U.S. shale firms don’t boost output further.

Russia needs much lower oil prices to balance its budget than OPEC’s leader Saudi Arabia, which is preparing a stock market listing for national energy champion Aramco next year and would hence benefit from pricier crude.

The producers’ current deal, under which they are cutting supply by about 1.8 million barrels per day (MMbbl/d) in an effort to boost oil prices, expires in March.

Kuwaiti Oil Minister Essam al-Marzouq told reporters OPEC and non-OPEC allies had agreed to extend the cuts by nine months until the end of 2018, as largely anticipated by the market.

OPEC also decided to cap the combined output of Nigeria and Libya at 2017 levels below 2.8 MMbbl/d, Iranian Oil Minister Bijan Zanganeh said. Both countries have been exempt from cuts due to unrest and lower-than-normal production.

Before the meetings, Saudi Energy Minister Khalid al-Falih said it was premature to talk about exiting the cuts at least for a couple of quarters and added that OPEC would examine progress at its next regular meeting in June.

“When we get to an exit, we are going to do it very gradually ... to make sure we don’t shock the market,” he said.

The Iraqi, Iranian and Angolan oil ministers also said before the meetings Nov. 30 that a review of the deal was possible in June in case the market became too tight.

Zanganeh said later no such debate had taken place at the OPEC meeting. However, a draft OPEC communique said the duration could be reviewed in June based on fundamentals. The next meeting is scheduled for June 21, an OPEC source said.

“We will review the market situation and needs, and whether to keep the same level of cut or gradually decrease or increase it,” one delegate said.

International benchmark Brent crude LCOc1 rose about 0.5% on Nov. 30 to trade above $63/bbl.

With oil prices rising above $60, Russia has expressed concerns that an extension for the whole of 2018 could prompt a spike in crude production in the U.S., which is not participating in the deal.

“If producers in the U.S. increase their rig count over the next few months due to higher prices then I expect another price collapse by the end of 2018,” said Scott Sheffield, executive chairman of Pioneer Natural Resources Co., one of the largest producers in the Permian Basin of Texas and New Mexico, the largest U.S. oil field.

“I hope that all U.S. shale companies will maintain their current rig counts and use all excess cash flow to increase dividends back to their shareholders,” he told Reuters.

Government data showed on Nov. 30 that U.S. crude oil production rose 3% in September to 9.48 MMbbl/d.

Gary Ross, a veteran OPEC watcher and founder of Pira consultancy, said the market could surprise on the upside with Brent prices rising to $70/bbl if there was a major supply disruption.

“Everywhere you look there is an ever-present risk to supply,” Ross said.

“In Iraq’s Kurdistan there is a major risk to oil exports because of tensions with Baghdad, in Libya militias are still fighting, in Nigeria the risks of disruptions are significant, Venezuela is on the verge of default, Iran could again face U.S. financial sanctions and even in Saudi Arabia political risk is on the rise,” Ross added.

The production cuts have been in place since the start of 2017 and helped halve an excess of global oil stocks although those remain at 140 MMbbl above the five-year average, according to OPEC.

Russia has signaled it wants to understand better how producers will exit from the cuts as it needs to provide guidance to its private and state energy companies.

“We need to work out a strategy for 2018,” Russian Energy Minister Alexander Novak said.