A pilot program underway at cafes and coffee shops in California’s Bay Area aims to create green solutions to the problem of single-use plastic cups for national chains like McDonald’s and Starbucks, according to Nation’s Restaurant News (NRN).

The program was developed as part of the NextGen Cup Challenge, a global competition sponsored by NextGen Consortium, which is collaborating with leading brands, industry experts and innovators to “bring fully recoverable hot and cold fiber cup systems to a global scale.” Closed Loop Partners is the consortium’s managing partner, and corporate partners include McDonald’s, Coca-Cola, Yum Brands (the parent company of Pizza Hut, KFC and Taco Bell), Wendy’s, Nestle and the World Wildlife Federation.

To kick off the pilot program, coffee shops in Palo Alto and San Francisco, Calif., began testing “smart” reusable cups in February. Participating shops include Coupa Café, Verve Coffee Roasters, Andytown Coffee Roasters, Ritual Coffee Roasters, Equator Coffees and La Boulangerie de San Francisco.

These “smart” cups are embedded with a tracking device. Customers can return the cups to the coffee shops or other drop-off locations, such as the City of Palo Alto. NextGen will then collect the cups, sanitize them and re-deploy them. Unlike some reusable cup programs, this one is different because customers don’t have to buy the cup or remember to carry it with them at all times, Bridget Croke, managing director at Closed Loop Partners, told NRN.

Starting in March, several cafés in Oakland—three Red Bay Coffee shops and Equator Coffees—will test fully recyclable and home-compostable single-use cups. Unlike standard to-go cups, this type of cup, made of fiber, won’t have polyethylene plastic liners. Instead, they use an aqueous-based coating to prevent leaks.

Additionally, Snow White Coffee in Oakland will test out a different coated paper cup that’s also recyclable and home-compostable.

The pilot programs are “battle-testing” the cups and gauging customer response, according to NRN. NextGen will also measure how each program fits into the circular economy and determine whether the solutions will be financially sustainable to allow for scaling up to the level required by major chains as well as independent restaurants.

McDonald’s and Starbucks have pledged a combined $15 million to the NextGen program.

“Finding a cup that can be scaled will require continued innovation, testing and honing of solutions,” said Marion Gross, senior vice president and chief supply chain officer for McDonald’s North America, in the NRN story.

Pizza News