Uber Technologies Inc on Wednesday reported operating profit for the second straight quarter as demand for ride-hailing services approached pre-pandemic levels and its food delivery service finally became profitable.

The company’s shares rose nearly 6 percent in over-the-counter trading.

Uber’s first-quarter outlook fell short of Wall Street’s expectations as the omicron coronavirus strain hurt the number of rides, but Uber CEO Dara Khosrowshahi said the business started to gain momentum in February.

Uber reported revenue of $5.8 billion for the fourth quarter of 2021.

The company reported adjusted earnings before interest, taxes, depreciation and amortization of $86 million for the quarter ended Dec. 31, well above analysts’ expectations of $62 million. A year earlier, Uber posted a loss of $454 million on a similar basis.

This is the second profitable quarter for the California-based company – the first time it reported positive EBITDA through the third quarter of 2021.

Uber’s net income from October through December was $892 million.

Uber expects first-quarter adjusted EBITDA to be in the range of $100 million to $130 million, compared with analysts’ forecasts of nearly $150 million.