Mazda has revealed that its iconic rotary engine will make a return. According to a report by Bloomberg, the Hiroshima-based automaker is reviving the classic technology for use in an unlikely place: battery-powered, self-driving vehicles that it’s developing with Toyota. The idea is to deliver everything from pizza to people, adds the report.

Mazda will provide rotary engines that function as generators to recharge the batteries for Toyota’s driverless delivery fleet, said Masahiro Moro, president of Mazda North America in an interview. He added that the self-driving vehicles are currently in development.

“This is a very suitable engine to run a generator because it’s compact and lightweight, with no noise or vibration, and it has very good fuel economy,” said Moro at the 2018 North American International Auto Show in Detroit.

Rotary engines require only a handful of parts to perform the burning of fuel and removal of exhaust inside a single combustion chamber, while traditional engines use a number of pistons, valves and crankshafts to coordinate these tasks in multiple chambers. Even after decades of trying to perfect the technology, Mazda somehow couldn’t lower emissions from its rotary-engined sports cars enough to satisfy regulators, so production and sales stopped altogether.

The Mazda Cosmo, built from 1967 to 1996, was Mazda’s first rotary-powered sports car

The Mazda rotary engines will not be the primary provider of propulsion, though. Instead, Toyota will use it as a range extender, a combination that General Motors first mass marketed in its 2011 Volt, although it had an inline-four engine instead of a Wankel/rotary.

The vehicles, which Toyota said would be developed with partners including Amazon, will need lots of electricity because Toyota plans to customise them to function as everything from mobile emergency command posts to traveling hotel rooms. Together, Toyota and Mazda (the former has a 5.25% stake in Mazda) will be building a new RM6.3 billion, jointly run vehicle assembly plant in Huntsville, Alabama.

Denso, a company which Toyota has a controlling stake in, is also helping develop engines and mechanical underpinnings for the electric cars that Toyota and Mazda are developing together, said Moro. “The companies are studying, among other things, whether to use rotary engines as range-extenders on more than just the e-Palette self-driving delivery vehicle,” said Toyota spokesman Brian Lyons.

Previously, Mazda’s global powertrain boss Mitsuo Hitomi told Automotive News last October that a range extender is a necessity in North America because people there typically drive for a much longer distance. Interestingly, Hitomi also said that a second, larger and more powerful rotary engine is currently being developed for a high-performance sports car that will slot above the MX-5.