U.S. energy firms added the most oil rigs in a week since April as the total rig count more than doubled from a record low a year ago amid a recovery in crude prices.

The combined oil and gas rig count, an early indicator of future output, was up for the second week in a row, increasing nine to 500 in the week to Aug. 13, its highest since April 2020, Baker Hughes Co. said. The total rig count was up 256 rigs, or 105%, from a record low of 244 this time last year, according to Baker Hughes data going back to 1940.

U.S. oil rigs rose 10 to 397 this week, also their highest since April 2020, and up from 172 a year ago, which was their lowest since 2005 before the shale boom boosted activity.

Gas rigs fell one to 102 but was still up from a record low of 68 in July 2020, according to Baker Hughes data going back to 1987.

Enverus, a provider of energy data with its own closely watched rig count, said the number of active rigs increased by eight to 575 in the week to Aug. 11 with most of the increases in Appalachia and the Permian.

U.S. crude futures were trading about $68 per barrel Aug. 13, putting the benchmark up slightly for the week even though oil demand growth is slowing sharply due to the spread of coronavirus variants.

Even though oil prices were over 41% higher so far this year, most energy firms remain focused on returning capital to investors. Some are raising spending in 2021 after cutting drilling and completion expenditures over the past two years although analysts think it will only replace natural declines in well production.

U.S. crude oil production is expected to fall by 160,000 barrels per day (bbl/d) in 2021 to 11.12 million bbl/d, the U.S. Energy Information Administration said in a monthly report Aug. 10, a smaller decline than its previous forecast for a drop of 210,000 bbl/d.