Because of bad information and lack of reconnaissance, two of the Union divisions in the infantry attack did not hit the Confederate left flank, but their movement by chance helped them to roll up the Confederate line by coming at it from the end and rear. The first division in the attack under Brigadier General Romeyn B. Ayres alone overran the short right angled line on the left side of the Confederate main line. Sheridan's personal leadership helped encourage the men and focus them on their objective. Brigadier General Charles Griffin's division recovered from overshooting the Confederate left and helped roll up additional improvised Confederate defense lines. Brigadier General (Brevet Major General) Samuel W. Crawford's division swept across north of the main battle but then closed off Ford's Church Road, swept down to Five Forks and helped disperse the last line of Confederate infantry resistance. The Union cavalry was somewhat less successful. Although they pushed the Confederate cavalry back, most Confederate cavalrymen escaped while most of the Confederate infantry became casualties or prisoners.