U.S. stocks closed higher Wednesday amid developments in U.S. international trade relations that were being viewed as optimistic by investors who have become increasingly sensitive to tariff headlines.

The market‘s gains were broad with shares of internet-related and information technology companies underpinning the rebound.

Communication services and information technology were the big winners while financials, materials and utilities ended lower.

What drove the market?

The Trump administration plans to delay a decision on instituting new tariffs on car and auto part imports for up to six months, according to media reports. The news helped stocks to recover from early-morning losses and gain a foothold in positive territory.

The Commerce Department had submitted a report to the White House in February that gave the president the authority to impose new duties on car imports on national security grounds, with a deadline of May 18, but the president has the authority to delay the decision for another 180 days.

President Donald Trump has long complained about the relative popularity of Japanese and European cars among American consumers, and has threatened tariffs as a means of getting the EU and Japan to agree to concessions in future trade negotiations.

The news potentially offsets worries that a worsening U.S.-China trade conflict would be aggravated by spats with other major trade partners like the EU at the same time that Congress is considering whether or not to ratify the Trump administration’s U.S.-Mexico-Canada trade pact, which, if passed, would replace Nafta as the treaty governing North American trade.

Trump on Tuesday also appeared to soften his rhetoric around trade, calling the dispute with China a “squabble” and repeating expectations for a positive meeting with Chinese leader Xi Jinping next month in Japan.

Disappointing data on U.S. retail sales helped to reinforce jitters about slowing domestic growth amid fears over the frayed relationship between Beijing and Washington that escalated last week after the Trump administration allowed tariffs on $200 billion of Chinese goods to increase to 25% from 10% and prepared further duties on a range of other goods.

What economic data were in focus?

Retail sales figures for April showed that U.S. retailers are seeing decelerating purchases for a second time in three months, declining 0.2% last month, compared with expectations for a 0.1% increase, per a MarketWatch poll of economists. Excluding autos, retail sales were flat for the month, versus expectations for 0.7% growth.

Though the letup follows a surprisingly strong 1.7% surge in retail sales in March, the broader trend in consumer spending reflects a slowing economy despite a health labor market.

The Empire State manufacturing survey in May climbed to a six-month high of 17.8 from a reading of 10.1 in April, the New York Fed announced.

Industrial production fell 0.5% in April. Economists polled by MarketWatch expected a 0.1% drop for production and a decline in utilization fell to 78.6%.

The National Association of Home Builders’ monthly confidence index jumped three points to 66 in May, the trade group said Wednesday; the highest reading since October.

What were analysts saying?

“The 0.2% [monthly] decline in retail sales in April was weaker than the consensus expectation of a small gain and supports our view that GDP growth is set to slow in the second quarter,” wrote Andrew Hunter, senior U.S. economist with Capital Economics, in a research note.

“With Donald Trump playing down trade tensions between the U.S. and China as a ‘little squabble,’ there is cautious optimism that both sides will eventually reach a trade deal, with investors potentially looking at the G-20 meeting in Japan next month as a possible target for a breakthrough in trade relations,” said Han Tan, market analyst at FXTM, in a report.

Intraday Data provided by SIX Financial Information and subject to terms of use. Historical and current end-of-day data provided by SIX Financial Information. All quotes are in local exchange time. Real-time last sale data for U.S. stock quotes reflect trades reported through Nasdaq only. Intraday data delayed at least 15 minutes or per exchange requirements.