On 27 June 1352, both the town of Zug and the "Aeusser Amt" entered the Swiss Confederation, the latter being received on exactly the same terms as the town, and not, as was usual in the case of outer districts, as a subject land. However, in September 1352 Zug had to acknowledge its own lords again, and in 1355 was obliged to break off its connection with the league. About 1364, the town and the Aeusser Amt were recovered for the league by the men of Schwyz, and from this time Zug took part as a full member in all the acts of the league. In 1379, the Holy Roman Emperor Wenceslaus exempted Zug from all external jurisdictions, and in 1389 the Habsburgs renounced their claims, reserving only an annual payment of 20 silver marks, which came to an end in 1415. In 1400 Wenceslaus gave all criminal jurisdiction to the town only. The Aeusser Amt, in 1404, then claimed that the banner and seal of Zug should be kept in one of the country districts and were supported in this claim by Schwyz. The matter was finally settled in 1412 by arbitration, and the banner was to be kept in the town. Finally in 1415, the right of electing their "landammann" was given to Zug by the Confederation, and a share in the criminal jurisdiction was granted to the Aeusser Amt by German king Sigismund.