 During his command, Gen. Beauregard is noted for creating the battle flag of the army, which came to be the primary battle flag for all corps and forces under the Army of Northern Virginia.The flag was designed due to confusion during battle between the Confederate "Stars and Bars" flag and the flag of the United States.Beauregard continued commanding these troops as the new First Corps under Gen. J. E. Johnston as it was joined by the Army of the Shenandoah on July 20, 1861, when command was relinquished to General J. E. Johnston.