2 Josiah also assigned the priests to their duties and encouraged them in their work at the Temple of the LORD .