The initial training phase for recruits to the National Police Corps was nine months, followed by a year of practical training. Promotions to corporal, sergeant, and sergeant major were based on seniority, additional training, and performance. In the Franco era, most police officers were seconded from the Spanish Army (with some from the Civil Guard). Under a 1978 law, future police officers were to receive separate training, and army officers detailed to the police were to be permanently transferred. By 1986 only 170 army officers remained in the National Police Corps. Under the 1986 organic law, military-type training for police was to be terminated, and all candidate officers were to attend the Higher Police School at Ávila, which previously had served as the three-year training center for the Superior Police Corps. The ranks of the plainclothes corps—commissioners, subcommissioners, and inspectors of first, second, and third class—were to be assimilated into the ranking system of the uniformed police—colonel, lieutenant colonel, major, captain, and lieutenant. Two lower categories—subinspection and basic—would include all nonofficer uniformed personnel. The newly unified National Police Corps was to be responsible for issuing identity cards and passports, as well as for immigration and deportation controls, refugees, extradition, deportation, gambling controls, drugs, and supervision of private security forces.