Under the early courts, when military conscription had been centrally controlled, military affairs had been taken out of the hands of the provincial aristocracy. But as the system broke down after 792, local power holders again became the primary source of military strength. The re-establishment of an efficient military system was made gradually through a process of trial-and-error. At that time the imperial court did not possess an army but rather relied on an organization of professional warriors composed mainly of oryoshi, which were appointed to an individual province and tsuibushi, which were appointed over imperial circuits or for specific tasks. This gave rise to the Japanese military class. Nonetheless final authority rested with the imperial court.