Swedish and Norwegian have since medieval times been influenced to varying degrees by Middle Low German and standard German. That influence was due not only to proximity, but also to the rule of Denmark—and later Denmark-Norway—over the German-speaking region of Holstein, and to Sweden's close trade with the Hanseatic League. Norwegians are accustomed to variation and may perceive Danish and Swedish only as slightly more distant dialects. This is because they have two official written standards, in addition to the habit of strongly holding on to local dialects. The people of Stockholm, Sweden and Copenhagen, Denmark have the greatest difficulty in understanding other Scandinavian languages. In the Faroe Islands and Iceland, learning Danish is mandatory. This causes Faroese people as well as Icelandic people to become bilingual in two very distinct North Germanic languages, making it relatively easy for them to understand the other two Mainland Scandinavian languages. Although Iceland was under the political control of Denmark until a much later date (1918), very little influence and borrowing from Danish has occurred in the Icelandic language. Icelandic remained the preferred language among the ruling classes in Iceland. Danish was not used for official communications, most of the royal officials were of Icelandic descent and the language of the church and law courts remained Icelandic. Finnish The Scandinavian languages are (as a language family) unrelated to Finnish, Estonian and the Sámi languages, which as Uralic languages are distantly related to Hungarian. Owing to the close proximity, there is still a great deal of borrowing from the Swedish and Norwegian languages in Finnish and the Sámi languages. The long history of linguistic influence of Swedish on Finnish is also due to the fact that Finnish, the language of the majority in Finland, was treated as a minority language while Finland was part of Sweden. Finnish-speakers had to learn Swedish in order to advance to higher positions. Swedish spoken in today's Finland includes a lot of words that are borrowed from Finnish, whereas the written language remains closer to that of Sweden. Finland is officially bilingual, with Finnish and Swedish having mostly the same status at national level. Finland's majority population are Finns, whose mother tongue is either Finnish (approximately 95%), Swedish or both. The Swedish-speakers live mainly on the coastline starting from approximately the city of Porvoo (Sw: Borgå) (in the Gulf of Finland) up to the city of Kokkola (Sw: Karleby)