the Polish nobility started negotiations of Louis's succession in Poland in the autumn of 1373. After a year of negotiations, he issued the so-called Privilege of Koszyce on 17 September 1374, reducing the tax that Polish noblemen paid to the king by about 84% and promising a remuneration to noblemen who participated in foreign military campaigns. In exchange, the Polish lords confirmed the right of Louis's daughters to inherit Poland. Louis invaded Wallachia in May 1375, because the new prince of Wallachia, Radu I, had formed an alliance with the Bulgarian ruler, Ivan Shishman, and the Ottoman Sultan Murad I. The Hungarian army routed the united forces of the Wallachians and their allies, and Louis occupied the Banate of Severin, but Radu I did not yield. During the summer, Wallachian troops stormed into Transylvania and Ottomans pillaged the Banat. From the middle of the 1370s, the Lackfis' influence diminished and new favorites emerged in the royal court. James Szepesi was appointed judge royal in 1373, and Nicholas Garay became the palatine in 1375. The organization of central government was also modified to create a more centralized power structure. Louis's "secret seal", that he had always taken with him during his wars and journeys, was declared authentic, and Louis entrusted it to the secret chancellor who was always to accompany him. A new high official, the Lord Chancellor were authorized to use the great seal in the king's name in 1376 or 1377. Demetrius, Bishop of Zagreb, who was of humble origin, was the first to hold this new office. The Lord Chancellor became the head of a new central court of justice, called the court of "the king's special presence" in 1377. From around the same time, the royal free towns delegated jurors to assist the master of the treasury, who headed the court of appeal for the towns. A new official, the treasurer, took over the financial duties of the master of the treasury. The Lithuanians made raids in Halych, Lodomeria, and Poland, almost reaching Cracow in November 1376. A riot broke out in Cracow against the unpopular queen mother, Elizabeth, on 6 December. The rioters slaughtered about 160 servants of the queen-mother, forcing her to flee to Hungary. Taking advantage of the situation, Władysław the White, Duke of Gniewkowo, who was a male member of the royal Piast dynasty, announced his claim to the Polish crown. However, Louis's