While caught up in a Time war between the past and the future on the planet Aoris, K9 was forced to spend a thousand years hidden on the planet, setting himself up as 'the great Machina' so that he could found a cult that would aid the Doctor and Romana in bringing the war to an end, hiding behind a fake computer with a version of the TARDIS until he could return to the Doctor and Romana once the war ended (AUDIO: The Paradox Planet, Legacy of Death).
K9's innards were redesigned twice more over the course of the series, firstly in collaboration with a company called Slough Radio Control. It allowed one of its employees, Nigel Brackley, to be seconded to the series semi-permanently to supervise the prop. Brackley, who has since gone on to a career in the movie industry, controlled K9 for many of its studio appearances. Eventually, there came a point where the dog's inherent liabilities were outweighing his assets, and the internal mechanisms were completely rebuilt by designer Charlie Lumm. The wheels were enlarged and given independent drives for power and better manoeuvrability, and the radio controls were switched from AM to FM signals to resist interference. However, by the time the improved model made his debut in State of Decay, the first story recorded for Season 18, the decision had already been made to write the character out of the series in the adventure Warriors' Gate.
K9 had a personality very consistent across the models with some contact with the Doctor. He was polite and formal, with pedantry bordering on condescension. Though he often displayed feelings such as sorrow (TV: The Invasion of Time) and self-regard (TV: School Reunion), he often stated that he had not been programmed to have emotions. (TV: Invasion of the Bane)
K9 Mark I, II, III, and IV addressed whoever was directing them as "Master" or "Mistress" depending upon gender, and used the formal "affirmative" and "negative" rather than "yes" and "no". They were programmed to be both loyal and logical, with a penchant for taking orders literally, almost to a fault. Their striped collars mirrored the Fourth Doctor's trademark scarf.
K9 Mark 2 had some obvious commonalities with the Mark I that had preceded him. However, as he had almost completely lost his personal memories, he was forced to reacquaint himself with the world around him. Toward this end, he downloaded thousands of human movies onto his memdrive, which peppered his speech with 20th and 21st century English colloquialisms that his "brothers" did not typically employ. (TV: Alien Avatar) Despite his negative opinions of emotions, (TV: Mutant Copper) he asked questions about some, such as fear (TV: Fear Itself) and love (TV: Aeolian). He even showed some, laughing when he saved the day, feeling fear (TV: Fear Itself) and being angry. (TV: Regeneration)
Within the series' narrative, K9 is a robot dog acquired by Doctor Who's title character in the 1977 serial The Invisible Enemy. The first two incarnations of the character travelled alongside the Fourth Doctor (portrayed by Tom Baker) until 1981. In these stories, K9 proved useful for the powerful laser weapon concealed in his nose, his encyclopaedic knowledge and his vast computer intelligence. By 1981, each of the two models of K9 which travelled alongside the Doctor had been left with one of the Doctor's female companions. The character subsequently transitioned into spin-off territory. Producers hoped K9's popularity with children would launch the series K9 and Company, led by actress Elisabeth Sladen in the role of companion Sarah Jane Smith alongside a new K9. In 2006, K9 reappeared in the revived series of Doctor Who. Although the character's appearances in the 2007 spin-off The Sarah Jane Adventures were hampered by the concurrent development of the K9 spin-off, the character began to appear full-time in both K9 and The Sarah Jane Adventures, depicting adventures of the original K9 Mark I and of Mark IV, respectively.