Arrow season 4 has cast Tom Amandes as a DC Comics villain whose appearance will tie into Roy’s return.

Amandes, who has worked with Greg Berlanti before, will play Noah Kuttler, aka The Calculator, who is described as “a criminal mastermind and technical genius.” TVLine reports that he will use “his advanced skills in computer science and internet manipulation to blackmail Roy (Colton Haynes) out of retirement to do his bidding, which leads to an epic battle with Team Arrow.”

Related: Arrow and the mysterious exit of Sara Lance

Amandes is expected to appear in two episodes, beginning in Arrow season 4, episode 12, “Unchained.” We previously reported episode 12 would be the episode Roy is returning for. However, this begs the question of whether Roy will be around for both of those episodes as well.

“We are beyond thrilled that Colton will be returning to Arrow this season,” said EP Marc Guggenheim. “It was always our intention to have him return following his departure last season, but it was a matter of finding the right story line to pull it off. That opportunity presented itself in episode 412 and we can’t wait for the fans to see this reunion.”

Related: Arrow: More sibling resurrections than Supernatural?

In the DC Comics, Noah Kuttler/Calculator is an information broker for super villains. He initially started fighting superheroes around the country, getting beaten up but cataloging the techniques so he’d never be defeated again. After escaping from prison, he came an information broker in the underworld.

Amandes’ credits have included Chicago Fire, Revenge, Parenthood and Scandal.

Arrow airs Wednesdays at 8:00 p.m. ET on The CW.