The Doctor and Jo head to Stangmoor Prison to investigate the Keller Machine, which drains the evil impulses from prisoners' minds, while UNIT are handling security at the first world peace conference.