Mazda was fully committed to the Wankel engine just as the energy crisis of the 1970s struck. The company had all but eliminated piston engines from its products in 1974, a decision that nearly led to the company's collapse. A switch to a three-prong approach (piston-gasoline, piston-Diesel, and Wankel) for the 1980s relegated the Wankel to sports car use (in the RX-7 and Cosmo), severely limiting production volume. But the company had continued production continually since the mid-1960s, and was the only maker of Wankel-powered cars when (the RX-8) was discontinued from production in June 2012 with 2000 RX-8 Spirit R models being made for JDM (RHD) market.