Lynda Carter
“Supergirl” executive producer Andrew Kreisberg revealed how Lynda Carter’s POTUS role will fit into the show’s Season 2 story. Pictured: Carter appears at the Bally Technologies booth at the Global Gaming Expo (G2E) 2014 at the Sands Expo and Convention Center on Sept. 30, 2014 in Las Vegas, Nev. Getty Images/Ethan Miller

Lynda Carter’s POTUS role on “Supergirl” is going to be a big part of Season 2.

When it was announced that Carter is going to recur as U.S. President Olivia Marsdin in the sophomore run of the CBS-turned-CW series, a lot of fans had started to think that her role would only be a minor one. It has recently been revealed, however, that the character — which will first appear in Episode 3 — will actually be in the center of action at some point in the upcoming installment.

In an interview with Entertainment Weekly, executive producer Andrew Kreisberg revealed that the president’s life is going be in danger after signing an alien amnesty act into law.

“She very much believes in this cause, which is going to put her in danger, which is going to necessitate Supergirl [Melissa Benoist] protecting her,” Kreisberg said.

While he didn’t specify which characters are against the president’s alien amnesty, the exec producer did share that he still couldn’t believe that Carter said yes to the role.

As previously reported, Kreisberg’s fellow executive producer Greg Berlanti was trying to get Carter to appear on the show as early as last season.

“We had the perfect role for Lynda Carter, and we couldn't work out her schedule,” Berlanti told Comic Book Resources and other news outlets last March. “That's the biggest disappointment for me for this entire [first] season.”

During a roundtable interview at the San Diego Comic-Con last July, executive producer Sarah Schechter briefly talked about the show’s decision to cast Carter as the female president of the United States.

“My personal hope is that it’s a good foretelling of things to come with our own presidency,” Schechter said (via /Film) of Carter’s POTUS role. “Lynda Carter is amazing and her role as Wonder Woman was, for a long time, the only female hero that a generation of people had to look to. We want to honor that even as we expand the idea of what a female superhero can be. I think there’s going to be some very surprising turns. I think people are going to be really excited. She has some fun stuff to do.”

“Supergirl” Season 2 premieres on Monday, Oct. 10 at 8 p.m. ET/PT on The CW.