The Doctor and Peri are in the TARDIS console room when the console explodes. Peri wakes to find herself in the Doctor's body, and there is no trace of him (presumably in her body). The scanner shows only static, so Peri leaves the TARDIS.
She finds herself on a rocky planet named Volnex VI. She finds footsteps that look like hers, and follows them, hoping to find the Doctor. Four men, Volnexians, approach her. She notices their glassy-eyed stares. They think she's the Doctor, so they knock her out and take her away.
Peri finds herself in a cave. She is brought to her captor, the Javaman. He too thinks she's the Doctor. He tells her he is working on the Dorganator, a machine that emits theta-waves. He is controlling the Volnexians with his machine. He used the machine to bring the TARDIS to this planet. Peri tries to tell him she and the Doctor switched bodies, probably caused by his machine, but he tells her corporelectroscopy is impossible.
The Javaman wants the secrets of time travel from the Doctor, and, to get "his" cooperation, uses his machine on one of the Volnexians. He stops short of killing the man, and sends Peri back to the cave to consider his request.
In the cave, Peri tries to figure out a plan. She looks in the Doctor's pockets, finding a paper clip, a cigarette lighter, and a firecracker, among other things. She then notices that a poppy plant is growing in the cave.
Peri suggests to the Javaman that they have tea. As they talk, she distracts him long enough to put the dried seed pod in his tea. She then begins to fake the explanation of time travel. However, the drugged tea fails to affect the Javaman, and he sees through her gibberish. She goes for plan B, grabbing the firecracker. She lights it and throws it near the Javaman's throne, and runs for the cave mouth. She tells the Volnexians, who are now free from the machine's control, to run. The cave crumbles, and the Javaman is trapped inside.
Peri makes her way to the TARDIS, and suddenly finds herself in the TARDIS, back in her own body. A few minutes later, the Doctor strolls in. He explains that while she was unconscious he went to investigate. He sabotaged the Dorganator, though he admits Peri helped a little with the firecracker.
- Peri thinks the Javaman sounds like David Bowie but looks like Tattoo from Fantasy Island.
- The Javaman won the Dastari prize for two consecutive years.
- The Doctor keeps a copy of George Orwell's Burmese Days in his pocket.
- Peri references Freaky Friday and Magnum PI.
- When pretending to describe time travel, Peri mentions the Rassilon Imprimatur, the Eye of Orion and Zeiton-7 crystals.
- The TARDIS has a television room.
- This story is narrated by Peri.
- The Doctor and Peri briefly switch bodies. During his third incarnation, he switched bodies with Jo Grant. (AUDIO: Ghost in the Machine)
- The Javaman is wanted by the Space Security Service for starting an insurrection on Wermir Colony A. Mavic Chen signed his death warrant. (TV: The Daleks' Master Plan)
- The Javaman won the Dastari Prize in two consecutive years. (TV: The Two Doctors)
- Peri refers to Zeiton-7. (TV: Vengeance on Varos)
- The Doctor claims that the Javaman is hardly in the same league as Davros, whom he and Peri met on Necros. (TV: Revelation of the Daleks)