Subject to the royal assent they might elect their own chief magistrate, bishop and judges. Their Roman law remained valid. They were even permitted to conclude separate alliances. No alien, not even a Hungarian, could live in a city where he was unwelcome; and the man who disliked Hungarian dominion could emigrate with all his household and property. In lieu of tribute, the revenue from customs was in some cases shared equally by the king, chief magistrate, bishop and municipality.