Prison overcrowding and the associated issues of housing, feeding, guarding, and caring for prisoners was a problem for both the North and the South during the Civil War. Relief came from a prisoner exchange agreement in July, 1862 that allowed for the exchange of prisoners within ten days of capture. President Jefferson Davis, CSA, broke this agreement over the issue of captured black soldiers and Major General Henry W. Halleck returned the favor in May 1863 by ordering that all prisoner exchanges were to be stopped. Afterwards, prison conditions on both sides deteriorated rapidly from overcrowding, leading to the deaths of more than 56,000 POWs during the war. The most notorious prisons were Andersonville (Confederate) and Fort Delaware (Union).