A 2016 video that Tesla used to promote its self-driving technology was staged to show capabilities like stopping at a red light and accelerating at a green light that the system did not have, according to testimony by a senior engineer.

The video, which remains archived on Tesla’s website, was released in October 2016 and promoted on Twitter by chief executive Elon Musk as evidence that Tesla drives itself.

But the Model X was not driving itself with technology Tesla had deployed, Ashok Elluswamy, director of autopilot software at Tesla, said in the transcript of a July deposition taken as evidence in a lawsuit against Tesla for a 2018 fatal crash involving a former Apple engineer.

The previously unreported testimony by Elluswamy represents the first time a Tesla employee has confirmed and detailed how the video was produced.

The video carries a tagline saying: “The person in the driver’s seat is only there for legal reasons. He is not doing anything. The car is driving itself.”

Elluswamy said Tesla’s autopilot team set out to engineer and record a “demonstration of the system’s capabilities” at the request of Musk.

Elluswamy, Musk and Tesla did not respond to a request for comment. However, the company has warned drivers that they must keep their hands on the wheel and maintain control of their vehicles while using autopilot.

The Tesla technology is designed to assist with steering, braking, speed and lane changes but its features “do not make the vehicle autonomous,” the company says on its website.

To create the video, Tesla used 3D mapping on a predetermined route from a house in Menlo Park, Calif., to Tesla’s then-headquarters in Palo Alto, he said.

Drivers intervened to take control in test runs, he said. When trying to show the Model X could park itself with no driver, a test car crashed into a fence in Tesla’s parking lot, he said.

“The intent of the video was not to accurately portray what was available for customers in 2016. It was to portray what was possible to build into the system,” Elluswamy said, according to a transcript of his testimony seen by Reuters.