 The viceroy had a limited authority over the two general headquarters until the King ordered on March 11, 1788 restoring full viceroyal authority over them and abolished the position of "Inspector Commander".In 1790 Ugarte was replaced by Pedro Nava in the west, who in 1791 also served temporarily in the East after the resignation of Ugalde, until the position was occupied by Ramón de Castro y Gutierrez.In November 1790, King Charles IV stated that the General captancy be reunited again and independent from the control of the Viceroy, but returned to undergo changes in 1791 and by royal order on 24 November 1792 returned to the control of the Viceroy.