The Congress passed legislation in May 1864 to allow for "temporary" general officers in the PACS, to be appointed by President Jefferson Davis and confirmed by the C.S. Senate and given a non-permanent command by Davis. Under this law, Davis appointed several officers to fill open positions. Richard H. Anderson was appointed a "temporary" lieutenant general on May 31, 1864, and given command of the First Corps in the Army of Northern Virginia commanded by Gen. Lee (following the wounding of Lee's second-in-command, Lt. Gen. James Longstreet on May 6 in the Battle of the Wilderness.) With Longstreet's return that October, Anderson reverted to a major general. Jubal Early was appointed a "temporary" lieutenant general on May 31, 1864, and given command of the Second Corps (following the reassignment of Lt. Gen. Richard S. Ewell to other duties) and led the Corps as an army into the third Southern invasion of the North in July 1864 with battles at the Monocacy near Frederick, Maryland and Fort Stevens outside the Federal capital city of Washington, D.C., until December 1864, when he too reverted to a major general. Likewise, both Stephen D. Lee and Alexander P. Stewart were appointed to fill vacancies in the Western Theater as "temporary" lieutenant generals and also reverted to their prior grades as major generals as those assignments ended. However, Lee was nominated a second time for lieutenant general on March 11, 1865.