Doctor Who: The Mind of Evil
Episode 3
S1 E3:
Newly recovered, the Doctor escapes from his cell with Jo. The Master plans to use the Keller Machine to recruit the rioting inmates at Stangmoor Prison and attack the World Peace Conference.