18 Then Jehoiada put the priests, who were Levites, in charge of the LORD's temple. David had given them their duties in the temple. He had appointed them to sacrifice burnt offerings to the Lord. He wanted them to do it in keeping with what was written in the Law of Moses. David wanted them to sing and be full of joy.