Norway’s state-controlled oil company plans to cut greenhouse gas emissions by 40% in the coming decade and to near zero by 2050, potentially allowing the country to keep pumping crude even as it works to meet its international climate obligations.

Equinor CEO Eldar Saetre told Reuters the plan could also give the company a competitive advantage as the industry faces rising costs for climate warming emissions.

Norway is western Europe’s top oil and gas exporter. It has used the proceeds from these sales to build the world’s largest sovereign wealth fund, worth more than $1 trillion.

Equinor and its partners plan to invest about 50 billion crowns (US$5.7 billion) by 2030 to cut emissions to an annual rate of about 8 million tonnes at offshore fields and onshore plants in Norway from 13 million tonnes in 2018, the company said.

The initial cuts will primarily come through replacing electricity from gas turbines with renewable energy at major installations, including offshore wind turbines and hydroelectric power via subsea cables.

Later, they will come from measures such as consolidating infrastructure and developing new technologies, it added.

“We are convinced that [cutting] the CO2 emissions from the production process is going to be a competitive factor, increasingly so in the future,” Saetre said on the sidelines of a news conference.

“There will be regulation of these emissions and also taxes associated with it ... it is mainly about avoiding cost and creating a competitive situation,” he said.

Oil and natural gas generate about half of Norway’s export revenue and some 25% of the country’s CO2 emissions.

Under the 2015 Paris climate agreement, almost 200 governments agreed to cut emissions to help avert more floods, droughts and rising sea levels.

Equinor has argued that slashing emissions from the production process should allow it to continue to pump for decades to come, even though the final consumption of its oil and gas will continue to emit greenhouse gases.

The company has said it expects Norway’s petroleum output, based on current resources, to fall by more than half by 2050, but environmental campaigners argue this will not be sufficient.

“Too little, too late. In 2050 there can't be any oil extraction from Norway’s continental shelf,” tweeted Andreas Radoey, a board member at NGO Nature and Youth.

Saetre said oil and gas would still be needed in the coming decades.

“I have seen no [climate] scenario that takes out oil and gas completely, so there will be oil and gas—significantly less than today, but the consumption of what it will be used for will be slightly different,” he said.