After the wall had been rebuilt and the gates hung, then the temple guards, the singers, and the other Levites were assigned their work.