WASHINGTON (AP) — U.S. employers are thought to have sustained a steady pace of hiring in July, a reassuring sign for an economy that’s endured a series of ups and downs.

Economists have forecast that the government will report that 163,000 jobs were added in July, according to data provider FactSet. This would be roughly in line with the average monthly gain of 172,000 so far this year, though below the 224,000 jobs added in June.

The unemployment rate is believed to have remained at 3.7% for a second straight month, close to a 50-year low.

The economy’s overall growth, along with consumer spending, has been solid. But business investment has been declining, home sales have weakened and manufacturers have shown signs of struggling.

Despite the economy’s resilience, the Federal Reserve on Wednesday cut its benchmark interest rate for the first time in a decade to try to counter the impact of President Donald Trump’s trade wars, stubbornly low inflation and global weakness. One day later, Trump announced plans to tax an additional $300 billion of Chinese imports beginning in September.

In the meantime, with the decade-long economic expansion now the longest on record, some employers appear to be running out of workers to hire. The average monthly job gain has dropped by 63,000 compared with the first six months of 2018. The bulk of the decline has come from the construction, manufacturing and mining and logging sectors, according to Martha Gimbel, director of economic research at the Indeed Hiring Lab.

Though it is growing consistently, the economy appears to be sliding into a slower phase. The gross domestic product — the total output of goods and services produced in the United States — grew at a decent if unspectacular 2.1% annual rate in the April-June quarter, down from a 3.1% pace in the January-March period.

Consumer spending increased at a 4.3% annual rate and helped propel much of the growth. But business capital investment declined for the first time in three years, a likely sign that Trump’s aggressive use of tariffs against China and other countries has slowed corporations’ expansion plans.

Pay gains also appear to have stalled, even though lower unemployment has historically boosted worker pay. Wages and benefits have risen 2.7% over the past 12 months, down slightly from the 2.9% gain for last year, the Labor Department said.

Home sales have fallen as high prices have kept many people out despite the benefits of low mortgage rates and job gains. Sales of existing homes have tumbled 2.2% over the past 12 months, according to the National Association of Realtors.

Factories have also been coping with a slowdown. In part, that’s because the global economy has weakened and the president’s tariffs on hundreds of billions of dollars’ worth of goods — and threats to add more — have disrupted supply chains. The Fed said this month that manufacturing output has improved just 0.4% from a year ago after having declined over the past six months.

There are signs, though, that consumers are optimistic. The Conference Board’s index of consumer confidence last month reached its best reading since November. A higher percentage of Americans anticipate pay raises in the next six months.

Indeed, spending at restaurants and bars has increased 4.2% year-to-date, according to government reports. And while traditional store retailers have faced hardships, online stores have prospered: Non-store retailers have enjoyed a 10.6% jump in sales.