Eventually, the rebels were defeated, but Charles (who had also matured and distanced himself from his earlier advisers) realized that the Council direly needed reform. Charles embarked upon a vigorous program to change the nature of the Council, dismissing the unpopular Antonio de Rojas and replacing him with Juan de Tavera, the Archbishop of Santiago. He also added three new councilors, Juan Manuel, Pedro de Medina, and Martín Vázquez, and generally sought to replace nobles with gentry and educated lawyers. More importantly, Charles changed the Council's functions. The Royal Council would no longer deal with the vast majority of civil law disputes and cases, allowing them to focus on administration instead. Judicial complaints and appeals would now be dealt with by a new and expanded judiciary, the "audiencias". With the reputation of the Council restored, the quality of its appointees rose.