Uber Technologies Inc. drew more customers to its ride-hailing and food delivery businesses in a boost to its fourth-quarter revenue, but high costs at Uber Eats meant Uber continues to lose money as it tries to outspend competitors.

Total revenue rose 37 percent to $4.07 billion on a yearly basis, compared with analysts’ average estimate of $4.06 billion, according to IBES data from Refinitiv.

However, net loss attributable to Uber widened to $1.1 billion from a loss of $887 million a year earlier.

Uber moved forward by a year its target to achieve profitability on an adjusted basis to the fourth quarter of 2020.

CEO Dara Khosrowshahi said the company would cut costs, aim to generate more repeat-customer business and try to increase use of premium ride services. He revealed the new profitability target on a conference call with investors after the company reported results.

Shares of Uber were up nearly 5 percent to $38.89 in after-hours trading.

Three-quarters of Uber’s revenue came from its ride-hailing service, available in more than 700 cities worldwide. The core segment had its best quarter yet and on its own, Uber’s ride-hailing business would already be profitable, but the company is burning through cash pursuing an array of other initiatives.

The company said its monthly active users rose to 111 million globally, in line with estimates of 110.78 million.

Gross bookings, a measure of total value of rides before driver costs and other expenses, rose 28 percent to $18.13 billion from a year earlier, compared with estimates of $18.03 billion.

But Uber’s total costs rose 25.2 percent to $5.04 billion in the quarter, as the company spent heavily on expanding its food delivery platform.

While revenue at Uber Eats grew nearly 14 percent on a quarterly basis, Uber also increased spending to attract drivers, with promotional incentives outpacing the segment’s revenue growth. Promotional costs as a share of revenue at Uber’s Eats business grew 4 percent from the third quarter.

Uber was the biggest of a group of Silicon Valley startups that went public last year against the backdrop of a global stock market sell-off sparked by trade tensions between the United States and China. Uber also faces increased regulation in several countries and fights with its drivers over wages and working conditions.

The company in January sold its food-ordering business in India to local competitor Zomato, in exchange taking a stake in the startup. The Indian business contributed only 3 percent of gross bookings in the first nine months of last year, but accounted for a quarter of the company’s adjusted operating losses.

Investors welcomed the news as a sign of Uber prioritizing profit over growth, sending the company’s shares up on Jan. 21, the day after the announcement.