WARNING: The following article contains spoilers for this week's episode of Gotham, "Pena Dura," which aired Thursday on Fox.

Last week's episode of Gotham ended with a shocking revelation: that Edward Nygma was responsible for the destruction of Haven and the killing of hundreds of refugees. The twist led us to believe the Riddler was actually the main threat of the fifth and final season, which is inspired in part by DC's Batman: Zero Year.

However, this week Gotham keeps the twists coming. Yes, Nygma pulled the trigger, but he was actually being mind-controlled by someone else -- the season's real mastermind: Shane West's Eduardo Dorrance, aka Bane.

RELATED: Gotham's True Joker Just Revealed His Greatest Trick

We've known for a while that West would be introduced as the Fox drama's version of Bane, who in the comics famously broke Batman's back. However, when Dorrance first arrives, it's as a savior dispatched by the government. Coming in for a last-minute save, Dorrance is revealed to be Jim Gordon's old Army buddy.

Gotham - Dorrance

For most of the episode, we're led to believe that he has Gordon's back, and that he's every bit as honorable as his friend. However, when Gordon discovers Nygma is being mind-controlled through a chip in his brain implanted by Hugo Strange, Dorrance reveals himself as the one who has been pulling the strings.

RELATED: Gotham's Major Death Seemingly Confirmed By New Promo

That cements Dorrance as the true, main threat of Gotham's final season. What's more, the character, for the time being, appears to be a regular soldier; that means the danger will only grow when he transforms into Bane.

But Dorrance isn't working alone. We learn in "Pena Dura" that he was sent by Secretary Walker, with whom Gordon spoke on the radio in last week's episode. She promised that help would come, and it has. It's just not what he expected.

What Walker's plans are for Gotham have yet to be revealed, but Dorrance is her trigger man -- and he might have plans of his own once he becomes Bane. After all, an epic showdown is coming in Gotham's future, and it sure looks like Dorrance has the means to amass his own army.

Airing Thursdays at 8 p.m. ET/PT on Fox, Gotham stars Ben McKenzie as James Gordon, Donal Logue as Harvey Bullock, David Mazouz as Bruce Wayne, Robin Lord Taylor as Penguin, Camren Bicondova as Selina Kyle, Erin Richards as Barbara Kean and Sean Pertwee as Alfred Pennyworth.