(Reuters) - Amazon.com Inc AMZN.O said on Wednesday it had signed a deal to lease 20 Boeing BA.N 767 widebody freighter aircraft to handle more of its own deliveries in the United States.

Amazon boxes are seen stacked for delivery in the Manhattan borough of New York City, January 29, 2016. REUTERS/Mike Segar

The deal comes at a time when the world’s biggest online retailer is offering ever-faster, and increasingly free, deliveries for millions of online orders.

Amazon, which relies on carriers like United Parcel Service Inc UPS.N and FedEx Corp FDX.N to deliver most of its packages, spent $11.5 billion on shipping last year.

In a bid to assume more control over its supply chain and reduce costs, Amazon has rolled out thousands of trailers and launched a program that uses contract drivers to deliver fast orders.

But analysts said the long-rumored plan to build its own air fleet posed little threat to the leading delivery companies.

“This is an incremental negative for FDX and UPS as it will likely remove some higher yielding express freight and parcel volume from each of the respective networks,” RBC Capital Markets analyst John Barnes wrote in a client note.

UPS, the world’s No. 1 package delivery company, operates about 240 large planes while FedEx has a fleet of about 370, Barnes noted. FedEx and UPS shares were down about 1.5 percent.

FedEx said on Wednesday the announcement was not a surprise and called Amazon a valuable customer.

“We work closely with Amazon and have been aware for some time about their need for supplemental air capacity related to inventory management,” said Patrick Fitzgerald, senior vice president of integrated marketing and communications at FedEx.

The leased planes will start to go into operation on April 1, Amazon spokeswoman Kelly Cheeseman said in an email.

Amazon has been testing deliveries by drones but has not said when they would be in service.

The duration of the leases will be five to seven years, lessor Air Transport Services Group Inc ATSG.O said.

As part of the agreement, Amazon has the right to buy up to 19.9 percent of ATSG’s stock over five years at $9.73 per share.

ATSG’s stock soared almost 27 percent to a record high of $14.90, before paring gains to about 16 percent.