(Reuters) - Wall Street was higher on Thursday after U.S. consumer prices increased modestly in April, cooling worries of accelerating inflation that would have made a case for faster interest rate hikes.

FILE PHOTO: People walk on Wall Street in front of the New York Stock Exchange (NYSE) in New York, U.S., February 6, 2018. REUTERS/Brendan McDermid/File Photo

A Labor Department report showed its consumer price index (CPI) rose 0.2 percent, below the economists’ expectation of 0.3 percent, as rising costs for gasoline and rental accommodation were tempered by a moderation in healthcare prices.

Excluding the volatile food and energy components, consumer prices rose 2.1 percent year-on-year in April, matching March’s increase.

U.S. Treasury yields added to their earlier decline after the data. [US/]

The stock market has been riding an oil rally for the past two days following President Donald Trump’s decision to withdraw the United States from a nuclear deal with Iran.

Oil prices were on track for their biggest weekly increase in a month on expectations of potential disruption to crude flows from major exporter Iran as the United States plans to reimpose sanctions. [O/R]

Rising oil prices have helped the S&P 500 energy index outperform other major sectors in the quarter with gains of 12.6 percent.

“The market wants to see a breakout in a particular sector,” said Robert Pavlik, chief investment strategist and senior portfolio manager at SlateStone Wealth LLC in New York. “So far, we’ve had in energy.”

“If the kind of gains we saw yesterday holds over, people will move into the market. The next level of resistance to watch is probably around where we closed 2,700.”

At 9:53 a.m. EDT the Dow Jones Industrial Average was up 94.74 points, or 0.39 percent, at

Read more from our friends at Reuters: