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.