18 Jehoiada assigned the priests and Levites their duties at the temple, just as David had done. They were in charge of offering sacrifices to the Lord according to the Law of Moses, and they were responsible for leading the celebrations with singing.