Apple sold more than 50 million iPhones in the first three months of 2017, the company reported in its second quarter financial results Tuesday.

Apple reported a net profit of $11 billion on revenue of $52.9 billion for the quarter, or $2.10 per diluted share, up from the $1.90 per diluted share in the year-ago quarter. The revenue figure was up 5 percent from the comparable quarter last year, with international sales making up 65 percent of the total.

Read: Siri Speaker: There's An 'Over 50% Chance' Apple Will Announce Device At June's WWDC

“We are proud to report a strong March quarter, with revenue growth accelerating from the December quarter and continued robust demand for iPhone 7 Plus,” Apple CEO Tim Cook said in a statement. “We’ve seen great customer response to both models of the new iPhone 7 (Product)RED Special Edition, and we’re thrilled with the strong momentum of our Services business, with our highest revenue ever for a 13-week quarter.”

The reported revenue was less than the $53.02 billion estimated by Thomson Reuters analysts.

iPhone 7 Sales

Apple sold 50.76 million iPhones, fewer than it did in the year-ago quarter when it sold 51.19 million.

Cook admitted Apple had some trouble handling the high demand for the iPhone 7 Plus.

“One of the things we didn't get right was the mix between the iPhone 7 and iPhone 7 Plus. Demand was much stronger towards iPhone 7 Plus than we expected,” he said in the company’s earnings call Tuesday. “Took us a little while to adjust all the way through the supply chain, to bring iPhone 7 Plus into balance, which finally occurred early in this quarter. Every time we launch something, we learn something, and we brush up our models, and apply everything we learn for next time.”

Read: Apple Vs. Qualcomm: Apple Ceases Royalty Payments Amid Lawsuits, Qualcomm Stock Price Plummets

Apple sold 8.9 million iPads, down 12 percent year-over year, and sold nearly 4.2 million Macs, slightly more than a number of units the company sold a year ago.

Here’s a breakdown by product:

apple q2 2017
Apple Q2 2017 Unaudited Summary Data. Apple

Here’s a breakdown by region:

apple q2 2017
Apple Q2 2017 Unaudited Summary Data. Apple

In Apple’s conference call, Cook boasted about the company’s latest environment report, its new campus and the recently opened Apple Store in Dubai.