Following this discovery, the colonial magistrates began proceedings to bring existing settlements under their authority in southern New Hampshire and Maine. This extension of the colonial claim conflicted with several proprietary grants owned by the heirs of John Mason and Sir Ferdinando Gorges. The Mason heirs pursued their claims in England, and the result was the formation of the Province of New Hampshire in 1679. The current boundary between Massachusetts and New Hampshire was not fixed until 1741. In 1678, the colony purchased the claims of the Gorges heirs, gaining control over the territory between the Piscataqua and Kennebec Rivers. The colony and later the province and state retained control of Maine until it was granted statehood in 1820.