The campaign for the Democratic nomination is extensively addressed. In the episodes "In the Shadow of Two Gunmen" and "Bartlet for America", flashbacks are used to tell how Bartlet defeated Texas Senator John Hoynes (Tim Matheson) and Washington Senator William Wiley for the Democratic nomination. The flashbacks also reveal how Leo McGarry persuaded Bartlet, who was then governor of New Hampshire, to run for president and how Bartlet ultimately selected John Hoynes as his choice as running mate.