Last of the Time Lords
Early in the episode, the Doctor states his desire to meet Agatha Christie. This is a reference to "Last of the Time Lords".