As soon as River left the room the Doctor slipped into the TARDIS. There was no way on the fifth moon of Jagragoon he was leaving her in that kind of danger. And he made the right decision. He saw evil-Barry about to take Max down on the surveilance camera Felicity had hacked through the TARDIS window and began pushing buttons.

Moments later he materialised around them. He put a tranquiliser patch on Barry before opening the door for Max, Oliver, River and Freya.

"Everybody into the TARDIS quickly," he announced. Once they were in he closed the door and pulled some levers. When they were underway he paused to straiten his bowtie and admire everybody's shocked expressions.

After a few moments Max managed to string together a coherent sentence, "what is this?"

"My ship. It's called the TARDIS and it can travel in time and space. Really, I have been through this already," he sighed.

"Time and space - so this isn't Seattle 2020?" she asked.

"No, Central City 2015," corrected Oliver.

"So I travelled in time?" Max gasped.

"And space, yeah," replied River.

"That's..."

"I know," said the Doctor, grinning like a fool. "And voila." He threw open the doors of the TARDIS to reveal they were back in S.T.A.R. labs.

He hadn't even stepped out when Clara threw her arms around him and said, "never leave me like that again."

"I won't," he whispered into her hair.

Oliver and Max carried unconsious Barry onto one of the beds. Meanwhile River, Cisco and Caitlin escorted Freya into the pipeline.

"You won't be tricking anyone ever again," said Cisco.

"We'll see about that," hissed Freya.

"Doubt it," Cisco called over his shoulder on his way out.