Photograph of Allan Pinkerton, President Abraham Lincoln, and General John A. McClernand in Maryland, 3 October 1862. Allan Pinkerton was in charge of Union intelligence and his agents often worked undercover to gather intelligence during the war.