 After securing control over the Commonwealth, Báthory had a chance to devote himself to strengthening his authority, in which he was supported by his chancellor Jan Zamoyski, who would soon become one of the king's most trusted advisers.Báthory reorganised the judiciary by formation of legal tribunals (the Crown Tribunal in 1578 and the Lithuanian Tribunal in 1581).While this somewhat weakened the royal position, it was of little concern to Báthory, as the loss of power was not significant in the short term, and he was more concerned with the hereditary Hungarian throne.