The Doctor adds to his programming so that he can daydream, but an alien ship eavesdrops on his thoughts and mistakes them for reality — and plans to attack Voyager.