Philip was substantially in debt to the Knights Templar, a monastic military order whose original role as protectors of Christian pilgrims in the Latin East had been largely replaced by banking and other commercial activities by the end of the 13th century. As the popularity of the Crusades had decreased, support for the military orders had waned, and Philip used a disgruntled complaint against the Knights Templar as an excuse to move against the entire organization as it existed in France, in part to free himself from his debts. Other motives appear to have included concern over perceived heresy, assertion of French control over a weakened Papacy, and finally, the substitution of royal officials for officers of the Temple in the financial management of French government. Recent studies emphasize the political and religious motivations of Philip the Fair and his ministers (especially Guillaume de Nogaret). It seems that, with the "discovery" and repression of the "Templars' heresy", the Capetian monarchy claimed for itself the mystic foundations of the papal theocracy. The Temple case was the last step of a process of appropriating these foundations, which had begun with the Franco-papal rift at the time of Boniface VIII. Being the ultimate defender of the Catholic faith, the Capetian king was invested with a Christ-like function that put him above the pope. What was at stake in the Templars' trial, then, was the establishment of a "royal theocracy".