 He led first brigade first division XII Corps under Alpheus Williams which saw action at the Battle of Chancellorsville.Suffering from lingering effects from his wounds and a bout with malaria, he temporarily left the Army of the Potomac and returned to Harrisburg.He took command of a brigade of inexperienced New York militia and led it in pursuit of the retreating Army of Northern Virginia following the Battle of Gettysburg.