Back in March, during a Q&A following the Supergirl and The Flash crossover episode, producers Greg Berlanti and Andrew Kriesberg teased that they were eyeing original Wonder Woman star Lynda Carter for a mystery role. They said that she wasn't available this season, but they wanted to make it happen in Season 2. Today we have confirmation that Lynda Carter has in fact signed on for Season 2 of Supergirl, playing the President of the United States.

The Hollywood Reporter reveals that Lynda Carter will first appear in the third episode of Season 2, and she will appear in multiple episodes. No details about her character have been given at this time, but it's possible that the producers will unveil more next month at San Diego Comic Con. It's also possible that Lynda Carter herself could put in an appearance at SDCC, but we don't know for sure.

During Supergirl's first season on The CW, the show cast Lois & Clark star Dean Cain and the original movie version of Supergirl, Helen Slater, as the foster parents of Kara Zor-El (Melissa Benoist). The casting of former superheroes is not uncommon practice for Greg Berlanti and Andrew Kriesberg, since they brought in the original TV version of The Flash, John Wesley Shipp, to play Barry Allen's father. We'll have to wait and see if the producers have any more superhero surprises up their sleeve for Season 2.

Related: Elseworlds Part 2 Trailer Visits Batwoman in Gotham City

After debuting the first season on CBS, Supergirl was renewed for Season 2 and shifted to The CW, where it will now anchor the network's superhero lineup. Supergirl is set to retain its Monday 8 PM timeslot on The CW, with The Flash following on Tuesdays at 8 PM, Arrow on Wednesdays at 8 PM and Legends of Tomorrow on Thursdays at 8 PM. There has been talk of another massive crossover episodes between all four shows, but it isn't clear if Lynda Carter will be a part of that event.

Lynda Carter became a household name after landing the role of Wonder Woman, with the hit TV series running four seasons from 1975 to 1979. Her appearance on Supergirl Season 2 will mark her first TV role in three years, following a 2013 guest-starring stint on CBS' Two and a Half Men, where she played herself. She has also voiced Azura in the video game Elder Scrolls Online and Magolia in last year's breakout hit Fallout 4.