Holmes was unable to finish writing the fourth chapter, originally called "Time Inc.", before his death from a liver illness and Hepatitis B on 24 May 1986, aged 59. The Bakers were commissioned by Nathan-Turner, at short notice, to write a new version of the episode, after script editor Eric Saward withdrew his permission for his original version of Part 14 to be used: the original ending would have featured a fight to the death in a time vent, between the Doctor and the Valeyard, as part of a cliff-hanger ending to the season, which horrified Nathan-Turner, as he feared that to use such a downbeat ending would have provided an excuse for the BBC management to cancel the series altogether. Subsequently the title was later changed to "The Ultimate Foe".