In the next episode of "DC's Legends of Tomorrow," the team is headed to deep space. "Marrooned" finds several members of Rip Hunter's crew captured by space pirates, and only Professor Stein can save them. According to executive producer Phil Klemmer, however, they need not worry.

"Rip, Rory and Jax are thrown into the pirate's brig, with nobody to save them except for the most unlikely action hero imaginable: Professor Stein," Klemmer explained. "It turns out that -- for a 60-something -- he's kind of a badass."

Heatwave Rebels Against "DC's Legends of Tomorrow" in New Teaser

The episode will also feature flashbacks to Rip Hunter's past, particularly when he was training as a Time Master and when he met his future wife.

PIRATE ATTACK -- After receiving a distress call from another timeship stranded in space, Rip (Arthur Darvill) decides to answer the call in order to use the other ship's computer to track Savage (guest star Casper Crump). The team is suspicious and warns him this could be a trap but he moves forward with his plan. Ultimately, the team was right and they have to battle time pirates. With most of the team captured, it is up to Professor Stein (Victor Garber) to rescue them all.

Airing Thursday nights at 8 pm EST on The CW, "Legends of Tomorrow" stars Caity Lotz as White Canary, Brandon Routh as the Atom, Wentworth Miller as Leonard Snart/Captain Cold, Dominic Purcell as Mick Rory/Heat Wave, Victor Garber as Professor Martin Stein (one-half of Firestorm), Franz Drameh as Jefferson "Jax" Jackson (the other half of Firestorm), Ciara Renee as Hawkgirl and Arthur Darvill as time-traveler Rip Hunter.