Lee devised a complex plan to pursue and destroy McClellan's army. While the divisions of Maj. Gens. James Longstreet and A.P. Hill looped back toward Richmond and then southeast to the crossroads at Glendale, and Maj. Gen. Theophilus H. Holmes's division headed farther south, to the vicinity of Malvern Hill, Brig. Gen. John B. Magruder's division was ordered to move due east along the Williamsburg Road and the York River Railroad to attack the Federal rear guard. Stonewall Jackson, commanding his own division, as well as the divisions of Maj. Gen. D.H. Hill and Brig. Gen. William H. C. Whiting, was to rebuild a bridge over the Chickahominy and head due south to Savage's Station, where he would link up with Magruder and deliver a strong blow that might cause the Union Army to turn around and fight during its retreat.