(Bloomberg) -- Oil ended near the highest closing level in eight weeks in New York on Thursday as a jump in U.S. crude inventories was countered by a decline in the nation’s oil production.

Futures were little changed. Output fell for a sixth week to 9.08 million barrels a day, the lowest level since November 2014, according to the Energy Information Administration. Crude inventories rose, keeping supplies at the highest in more than eight decades. OPEC members will meet with Russia and other producers in Moscow on March 20 to resume talks on an output cap, Nigeria’s oil minister said.

"The mood has changed in the market and we are a little bit more optimistic about the future," said Phil Flynn, senior market analyst at the Price Futures Group in Chicago. "The market is shaking off the big inventories builds that we saw in recent weeks."

Oil is still down about 6% this year on speculation a global glut will be prolonged amid brimming U.S. stockpiles and the outlook for increased exports from Iran after the removal of sanctions. Exxon Mobil Corp. scaled back production targets and said drilling budgets will continue to drop through the end of next year as the oil market shows no signs of a significant recovery.

West Texas Intermediate for April delivery fell 9 cents to close at $34.57 a barrel on the New York Mercantile Exchange. The contract rose to $34.66 Wednesday, the highest settlement since Jan. 5. Total volume traded was about 16% above the 100-day average.

U.S. Stockpiles

Brent for May settlement gained 14 cents to $37.07 a barrel on the London-based ICE Futures Europe exchange. The global benchmark crude was at a premium of 74 cents to WTI for May.

The Bloomberg Dollar Spot Index fell 0.5%, after earlier gaining 0.1%.

U.S. crude stockpiles expanded by 10.4 million barrels to 518 million, according to a report from the EIA Wednesday. Supplies at Cushing, Okla., the delivery point for WTI and the nation’s biggest oil-storage hub, rose for a fifth week to a record 66.3 million barrels.

The market’s saying "You can’t ignore fundamentals," said Tariq Zahir, a New York-based commodity fund manager at Tyche Capital Advisors. "With the massive amount of supplies that we have, the market should go lower. I think prices will go back to below $30 in a few weeks."

Others are more optimistic. There will be a “dramatic price movement” when the meeting between OPEC members and Russia takes place, Nigerian Petroleum Minister Emmanuel Kachikwu said at a conference in Abuja on Thursday. Saudi Arabia, Russia, Qatar and Venezuela agreed on Feb. 16 in Doha that they would freeze production, if other producers followed suit, in an effort to tackle the global oversupply.

Exxon’s output will be the equivalent of 4 million to 4.2 million barrels a day through 2020, compared with the previous target of 4.3 million as soon as next year, Chairman and Chief Executive Officer Rex Tillerson said at the company’s annual strategy session in New York on Wednesday. Capital spending will fall about 25% this year to $23.2 billion and will decline again in 2017.