In recent years, major auto companies such as Toyota had to recall millions of cars because of defects.