 At times Ferdinand managed to get Prince George I Rákóczi of Transylvania, an ally of France and Sweden, on his side.In the 1645 "Peace of Linz" the Emperor had to guarantee the Hungarian estates the right of imperial representation and freedom of religion for the Protestants, which prevented the Counter-reformation and future Absolutist rule in Hungary.The emperor reissued the instructions for the peace talks for Trautmannsdorf, who left for Westphalia as chief negotiator.