After Ahithophel died, Abiathar and Jehoiada son of Benaiah became advisers. Joab was commander of the royal army.