KFC is making a major change to fix one of the biggest problems in the fast-food industry

On Wednesday, the chain officially announced it was rolling out mobile payment, with system-wide adoption expected to be completed by the end of the summer.

With the new payment system, customers can pay with Apple Pay, Android Pay, and Samsung Pay both in stores and at drive-thrus.

The change has two purposes. First, it is part of a wide update to the chain’s mobile-payment infrastructure to increase security. Second, it is expected to improve speed of service, especially as more locations switch to the slightly more time-consuming EMV chip-card payment.

The promise of speedier service is key in the fast-food industry, with chains across the industry making changes from simplifying menus to adopting new technology to ensure that customers can get their food as quickly as possible. When fast food slows down — as it did across the industry in recent years, only recovering slightly in 2015, according to QSR magazine data — it means fewer sales and unhappy customers.

Adding the option of mobile pay seems like a small time-saving move, but it goes hand-in-hand with wider technology intended, in part, to help speed up service.