Pope's mission was to fulfill two basic objectives: protect Washington and the Shenandoah Valley; and draw Confederate forces away from McClellan by moving in the direction of Gordonsville. Based on his experience fighting McClellan in the Seven Days, Robert E. Lee perceived that McClellan was no further threat to him on the Virginia Peninsula, so he felt no compulsion to keep all of his forces in direct defense of Richmond. This allowed him to relocate Jackson to Gordonsville to block Pope and protect the Virginia Central Railroad. Lee had larger plans in mind. Since the Union Army was split between McClellan and Pope and they were widely separated, Lee saw an opportunity to destroy Pope before returning his attention to McClellan. He committed Maj. Gen. A.P. Hill to join Jackson with 12,000 men. On August 3, General-in-Chief Henry Halleck directed McClellan to begin his final withdrawal from the Peninsula and to return to Northern Virginia to support Pope. McClellan protested and did not begin his redeployment until August 14. On August 9, Nathaniel Banks's corps attacked Jackson at Cedar Mountain, gaining an early advantage, but a Confederate counterattack led by A.P. Hill drove Banks back across Cedar Creek. Jackson's advance was stopped, however, by the Union division of Brig. Gen. James B. Ricketts. By now Jackson had learned that Pope's corps were all together, foiling his plan of defeating each in separate actions. He remained in position until August 12, then withdrew to Gordonsville. On August 13, Lee sent Longstreet to reinforce Jackson. From August 22 to 25, the two armies fought a series of minor actions along the Rappahannock River. Heavy rains had swollen the river and Lee was unable to force a crossing. By this time, reinforcements from the Army of the Potomac were arriving from the Peninsula. Lee's new plan in the face of all these additional forces outnumbering him was to send Jackson and Stuart with half of the army on a flanking march to cut Pope's line of communication, the Orange & Alexandria Railroad. Pope would be forced to retreat and could be defeated while moving and vulnerable. Jackson departed on August 25 and reached Salem (present-day Marshall) that night. On the evening of August 26, after passing around Pope's right flank via Thoroughfare Gap, Jackson's wing of the army struck the Orange & Alexandria Railroad at Bristoe Station and before daybreak August 27 marched to capture and destroy the massive Union supply depot at Manassas Junction.