Spoilers ahead for tonight's episode of The Flash, titled "Invasion!"

Tonight, fans of The Flash finally met the President of the United States in the Arrowverse -- and it wasn't Lynda Carter.

Carter, who starred in the 1970s Wonder Woman TV series, recently came to Supergirl to play President Olivia Marsdin in an episode that dealt with an "alien amnesty act" that has been a controversial part of the season so far. And, yes, the producers of The Flash, Arrow, and DC's Legends of Tomorrow wanted to have Carter play the President on The Flash -- but they didn't want to kill her. After the quick death of the (male) President, the plan was to introduce Marsdin as the Vice President who would take his place -- but a studio note actually put the kibosh on it.

"We did, actually," consider making Lynda Carter the President on The Flash, Arrow and Legends of Tomorrow EP Marc Guggenheim said. "In the first draft of the script, she was the vice president who becomes the President, and we got a note from the studio which we think was pretty fair, which was that it was a bit too confusing. You get into the parallel Earths of it all but she’s not the President on our Earth but the Vice President. In the midst of time travel and aliens, it was just one sci-fi problem too much." Guggenheim said that while he was eager to be on set that day and see Carter at work in the DC Universe, he understood the note and conceded that if people at the studio were confused by the script, it was probably not particularly friendly to casual fans.