The Province of Canada began creating judicial districts in sparsely populated Northern Ontario with the establishment of Algoma District and Nipissing District in 1858. These districts had no municipal function; they were created for the provision of judicial and administrative services from the district seat. Nipissing had no district seat until 1895. Up until that date, registry office and higher court services were available at Pembroke in Renfrew County. Nipissing Stipendiary Magistrate and land registrar William Doran established his residence at North Bay in 1885. Following the hotly contested district town election in 1895, North Bay earned the right to become the district seat in the new Provisional District of Nipissing. After the creation of the province of Ontario in 1867, the first district to be established was Thunder Bay in 1871 which until then had formed part of Algoma District. The Ontario government was reluctant to establish new districts in the north, partly because the northern and western boundaries of Ontario were in dispute after Confederation. Ontario's right to Northwestern Ontario was determined by the Judicial Committee of the Privy Council in 1884 and confirmed by the Canada (Ontario Boundary) Act, 1889 of the Parliament of the United Kingdom. By 1899 there were seven northern districts: Algoma, Manitoulin, Muskoka, Nipissing, Parry Sound, Rainy River, and Thunder Bay. Five more northern districts were created between 1907 and 1922: Cochrane, Kenora, Sudbury, Temiskaming and Patricia. The Patricia District was then merged into the Kenora District in 1927.