After hearing of the retreat, Grant, who was in charge of VIII Corps., put Maj. Gen. E. O. C. Ord in command of Wallace’s troops. (Wallace did not learn that he had been replaced until July 11, after his forces reached Baltimore; however, he still retained responsibility for the administration of the Middle Department.) When government officials became aware of the efforts that Wallace and his men had made to save Washington, the situation changed. Wallace was restored to full command of VIII Corps and the Middle Department on July 28.