David called together the troops that were with him. He appointed commanders in charge of regiments and battalions.