The aftermath of the Partition Sejm saw the rise of a conservative faction opposed to the Permanent Council, seeing it as a threat to their Golden Freedoms. This faction was supported by the Czartoryski family, but not by Poniatowski, who proved to be quite adept at making the Council follow his wishes. This marked the formation of new anti-royal and pro-royal factions in Polish politics. The royal faction was made up primarily of people indebted to the King, who planned to build their careers on service to him. Few were privy to his plans for reforms, which were kept hidden from the conservative opposition and Russia. Poniatowski scored a political victory during the Sejm of 1776, which further strengthened the council. Chancellor Andrzej Zamoyski was tasked with the codification of the Polish law, a project that became known as the Zamoyski Code. Russia supported some, but not all, of the 1776 reforms, and to prevent Poniatowski from growing too powerful, it supported the opposition during the Sejm of 1778. This marked the end of Poniatowski's reforms, as he found himself without sufficient support to carry them through.