Robert Downey Jr.'s departure from the Marvel Cinematic Universe in Avengers: Endgame almost ended much differently.

According to editor Jeff Ford, who spoke with Collider, alternate takes of the exchange between the Mad Titan Thanos and Iron Man were filmed due to Downey Jr.'s acting process. "The way Robert works is, he sometimes likes to explore," Ford said. "He likes to try different things. And because he’s an intuitive actor, he likes to do that on camera in case he hits something that is special. Very often he does."

RELATED: Jon Favreau Wants Robert Downey Jr. to Return to the MCU - As a Director

Ford went on to explain that a vast majority of the takes were complete improvisations on the part of Downey Jr. "When we were putting together the end of the movie, when we shot Tony’s last moment in the first round, we shot a bunch of different options," he said. "Robert had different ideas…We give him space to do that. Joe and Anthony are great about improv. We shot a run of different performances for that last moment. Some of them were crazy. Some of them we would never have used."

RELATED: Watch: Robert Downey Jr's First Iron Man Screen Test Has Been Revealed

With his performance in Endgame, Downey Jr. wrapped up his tenure as the Armored Avenger that began with 2008's Iron Man. The actor has received critical acclaim for his performance as Tony Stark over the last decade but has also expressed a desire to distance himself from the role of Iron Man.

Directed by Joe and Anthony Russo, Avengers: Endgame stars Robert Downey Jr. as Iron Man, Chris Evans as Captain America, Mark Ruffalo as Bruce Banner, Chris Hemsworth as Thor, Scarlett Johansson as Black Widow, Jeremy Renner as Hawkeye, Brie Larson as Captain Marvel, Paul Rudd as Ant-Man, Don Cheadle as War Machine, Karen Gillan as Nebula, Danai Gurira as Okoye and Bradley Cooper as Rocket, with Gwyneth Paltrow Pepper Potts, Jon Favreau as Happy Hogan, Benedict Wong as Wong, Tessa Thompson as Valkyrie and Josh Brolin as Thanos. The film is now available on Digital HD, Blu-ray and 4K UHD.