 Until 1965 these mayor judges on historical grounds also performed administrative functions in the "board of magistrates", in Swedish known collegially as "magistrat".Until 1965 there were also municipal mayors ("kommunalborgmästare"), who had these non-political administrative roles in smaller cities without a magistrates' court or "magistrat".This office was an invention of the 20th century as the smaller cities in Sweden during the first half of the 20th century subsequently lost their own courts and magistrates.