After his defeat at the Battle of Chattanooga, Braxton Bragg, commander of the Confederate army, offered his resignation on November 29, and President Jefferson Davis quickly accepted it. But he had trouble deciding on a replacement. William Hardee, the senior corps commander, took over temporary command. But he did not want it permanently, having seen the responsibility and governmental politics it involved. He recommended Joseph E. Johnston, as did Polk, another corps commander. Davis did not like Johnston and doubted whether he was willing to attack the enemy. The only other officer in the Confederacy of that rank was P. G. T. Beauregard, and Davis thought he would be even worse. The generals and the soldiers wanted Joe Johnston, but many in Richmond were not sure he had what it took. But finally, after nearly a month, Davis accepted the inevitable, and gave Johnston command of the Confederate army.