On May 21, 1864 Major General David Hunter was appointed to command the Department of West Virginia. Hunter designated the field forces of his department the "Army of the Shenandoah". Hunter was in command of the Army of the Shenandoah from May 21 to July 3 which consisted of two infantry divisions and two cavalry divisions. The First and Second Infantry Divisions were commanded by Brigadier Generals Jeremiah C. Sullivan and George Crook respectively. The First and Second Cavalry Divisions were commanded by Brigadier Generals Julius Stahel (succeeded by Alfred N. Duffie) and William W. Averell respectively. In May Crook's and Averell's divisions fought independently at the battle of Cloyd's Mountain. Hunter personally led Sullivan's and Stahel's divisions at the battle of Piedmont. All four divisions were joined together for the battle of Lynchburg. On July 3, George Crook assumed command of both infantry divisions and designated this as a new field army named the Army of the Kanawha.