While Captain Marvel is making her eagerly anticipated Marvel Cinematic Universe debut this week headlining her own film, the superhero very nearly was introduced to audiences in 2015's Avengers: Age of Ultron.

An interview with Marvel Studios President Kevin Feige promoting Age of Ultron nearly four years ago has resurfaced online with the studio head revealing filmmaker Joss Whedon had included Carol Danvers in an early version of the 2015 film's script. Whedon had gone as far as to film visual effects plates to insert the character into the final scene as the newly recruited Avengers gather in the team's new upstate New York headquarters before the studio decided to save the character's debut for her own solo film.

RELATED: Samuel L Jackson Still Wants to Dig Deeper Into Nick Fury's Past

"[Captain Marvel] was in a draft. But to me, it would have done that character a disservice, to meet her fully formed, in a costume and part of the Avengers already when 99% of the audience would go, ‘Who is that?’ It’s just not the way we’ve done it before," explained Feige in a 2015 interview with Birth. Movies. Death. "The way we reveal Scarlet Witch at the end of the movie? Those were Captain Marvel plate shots. Joss said, ‘We’ll cast her later!’ And I said, ‘Yeah Joss, we’ll cast her later.’ [Whispers to an invisible associate who isn't Joss] ‘We’re not putting her in there!’"

As the final film has since shown, Scarlet Witch was ultimately substituted in for the effects shots intended for Captain Marvel's entrance to help set up her role on the team in the following year's Captain America: Civil War. Brie Larson would eventually be cast in the role the following year, officially announced at 2016's Comic-Con International in San Diego.

RELATED: Captain Marvel: Brie Larson Explains What Makes Her Hero Unique

"Finally Joss was like ‘Let’s use those plates to let Scarlet Witch fly into frame, give her a big entrance?’ And that makes sense - she’s come to their side, and she deserves the cool intro, which will feed into [Captain America: Civil War]." Feige continued.

Directed by Anna Boden and Ryan Fleck from a script they wrote with Liz Flahive, Carly Mensch, Meg LeFauve, Nicole Perlman and Geneva Robertson-Dworet, Captain Marvel stars Brie Larson as Carol Danvers, Samuel L. Jackson as Nick Fury, Jude Law as Mar-Vell, Clark Gregg as Phil Coulson, Lee Pace as Ronan the Accuser, Djimon Hounsou as Korath the Pursuer, Gemma Chan as Minn-Erva, Ben Mendelsohn as Talos and Lashana Lynch as Maria Rambeau. The film arrives on March 8.