Initialising priority map, untested.