As to Gregory's regulations on the conduct of the conclave, though briefly annulled by Adrian V and John XXI, they remained in force until the 20th century. In 1798 Pope Pius VI, in consideration of the occupation of Rome by the French, dispensed the Cardinals from many of the conclave regulations, including those of Gregory X, while in 1878 Pope Pius IX, fearing that the Italians might invade the Vatican on his death and try to prevent or dominate a conclave, gave Cardinals great latitude in the regulating of the next conclave. A radical revision was undertaken by Paul VI.