Shemaiah, the son of Nethanel, who was a descendant of Levi, wrote down the names of the leaders of each group while David and his officials were watching. Zadok, the Supreme Priest, and Ahimelech his assistant, and the leaders of the families of the priests and of the families of the other descendants of Levi also watched.