Libya’s oil production has risen to 1.012 million barrels per day (MMbbl/d), a Libyan oil industry source told Reuters on June 30, topping 1 MMbbl for the first time in four years.

State-owned National Oil Corp. had targeted reaching 1 MMbbl/d by the end of July.

Output has been helped by an interim deal with Germany’s Wintershall to resume production amid a contract dispute.

On June 29, the same source said production had been fluctuating between 950,000 bbl/d and close to 1 MMbbl/d due to technical and power generation problems.

He expected production to stabilize at the higher end of that range “very soon.”

Libya’s oil sector has been dogged by unrest since the overthrow of leader Muammar Gaddafi in 2011.

A power struggle involving various tribal, military and political factions has since affecting oil infrastructure through port blockades and pipeline shutdowns.

Libya, along with Nigeria, is exempt from a deal between OPEC and non-OPEC producers to curb output by around 1.8 MMbbl/d.