King Magnus afterwards ordered the people to be summoned to Viborg to a Thing. Both in older and later times, the Danes elected their kings at the Viborg Thing. At this Thing the Danes chose Magnus Olafson to be king of all the Danish dorninions. King Magnus remained long in Denmark during the summer (A.D. 1042); and wherever he came the people received him joyfully, and obeyed him willingly. He divided the country into baronies and districts, and gave fiefs to men of power in the land. Late in autumn he returned with his fleet to Norway, but lay for some time at the Gaut river.