Warning: This article contains spoilers
David Tennant has made a surprise appearance in Jodie Whittaker's final Doctor Who story.
Whittaker unexpectedly regenerated into Tennant at the end of the 90-minute special The Power of the Doctor.
The BBC has confirmed that the popular actor, who previously played the role between 2005 and 2010, has officially returned as the 14th Doctor.
Tennant told BBC News: "What a lovely, lovely thing to get to revisit something that was such a wonderful, happy, significant time in my life."
It was announced earlier this year that the actor had been filming scenes for the sci-fi drama's 60th anniversary.
Now it's been confirmed that he's playing more than a brief cameo, and that he's taken over from Whittaker to once more play the Doctor for three episodes next year.
"You move on from it with a whole mixture of emotions," said Tennant, who left the show in 2010.
"And one of those is sadness and regret. So to be able to revisit that and to get another another shot, it was a total joy from start to finish.
"Doctor Who runs through my life, as if through a stick of rock really. It's a show that I loved as a small child, I grew up obsessed with it. I went to get [fourth Doctor] Tom Baker's autograph in Glasgow, John Menzies.
"I thought it was something that I would certainly never be as involved in again... it's like being given the loveliest present. And I'm very, very excited. I'm thrilled and I hope people will enjoy the stories we've got to tell."
60th anniversary year
He'll appear in three special episodes which will air in November 2023.
In the world of TV, it's certainly not the first time that a well-known character has returned to a show, after what seemed to be a fairly permanent departure.
Dirty Den in EastEnders, Bobby Ewing in Dallas. And some never quite manage to achieve their previous level of popularity.
"It didn't really feel like a risk," he says.
"It felt in a way that the pressure was off. But also I knew that Russell T Davies was in charge. And I love working with him and I love receiving a script with his name on the front. So that just felt like it was a bit of a no-brainer."
With the special episodes still over a year away, he's reluctant to be drawn too much on what might happen. But he knows that there are many questions that viewers will be asking. One of them, his relationship with Catherine Tate's Donna Noble, who is also returning.
"Of course, there's a big mystery there," he confirms.
"Because she's, as eagle-eyed viewers will know, when we last left Donna Noble, she could not remember the Doctor's existence, or her brain would melt. So there's a bit of an issue there."
Eagled-eyed viewers will also have noticed from his brief appearance and from the short 2023 teaser also shown, that his costume isn't quite the same as they might remember it.
"To a sort of casual viewer, I look like I'm sort of dressed in the same way as I used to be.
"But actually we've gone for something that's sort of the same but different. That has echoes of the past but it's also a bit something of the now as well."
Celebrating the past
Whittaker's final story shown in Sunday was filled with characters from the Doctor's past.
The fifth, sixth, seventh and eighth Doctors, played by Peter Davison, Colin Baker, Sylvester McCoy and Paul McGann, all made brief appearances.
As did former companions Ace, Tegan and Jo, played by Sophie Aldred, Janet Fielding and Katy Manning.
97-year-old William Russell, who played one of the companions of the first Doctor, William Hartnell, also appeared in the story.
The Power of the Doctor broadly went down well with critics, with the Telegraph's Michael Hogan describing the return of previous Doctors as "a spine-tingling moment".
The Guardian's Rebecca Nicholson said the episode was a "glorious send-off for Whittaker" while the Evening Standard's Elizabeth Gregory added it was "a fitting tribute to a great Doctor".
However, the Independent's Isobel Lewis suggested Whittaker "deserved more for this end of an era". Dominic Maxwell of the Times said: "The trailer-like pace and lurches of logic made it more Marvel comic than marvellous drama, yet there was far too much happening for this hypercrammed send-off to be dull."
2023 and beyond
After the three 60th-anniversary specials in 2023, Sex Education star Ncuti Gatwa will take over from David Tennant as the 15th Doctor.
How does the 14th Doctor David Tennant rate his eventual successor?
"[He's] I mean, scarily good, brilliant. I think the world has got a very exciting new Doctor to look forward to. Once you've enjoyed this one for a little while longer."
The Power of the Doctor is available on BBC iPlayer
Jodie Whittaker
Doctor Who