cities and towns of Middlesex County. Since the start of the 21st century much of the current and former county offices have physically decentralized from the Cambridge seat, with the sole exceptions being the Registry of Deeds and the Middlesex Probate and Family Court, which both retain locations in Cambridge and Lowell. Since the first quarter of 2008, the Superior Courthouse has been seated in the city of Woburn; the Sheriff's Office is now administratively seated in the city of Medford and the Cambridge-based County Jail has since been amalgamated with another county jail facility in Billerica. The Cambridge District Court (which has jurisdiction for Arlington, Belmont and Cambridge); along with the Middlesex County District Attorney's Office, although not a part of the Middlesex County government, was also relatedly forced to relocate to Medford at the time of the closure of the Superior Courthouse building in Cambridge. Law and government Of the fourteen counties of Massachusetts, Middlesex is one of eight which have had no county government or county commissioners since July 1, 1998, when county functions were assumed by state agencies at local option following a change in state law. Immediately prior to its dissolution, the executive branch consisted of three County Commissioners elected at-large to staggered four-year terms. There was a County Treasurer elected to a six-year term. The county derived its revenue primarily from document filing fees at the Registries of Deeds and from a Deeds Excise Tax; also a transfer tax was assessed on the sale price of real estate and collected by the Registries of Deeds. Budgets as proposed by the County Commissioners were approved by a County Advisory Board that consisted of a single representative of each of the 54 cities and towns in Middlesex County. The votes of the individual members of the Advisory Board were weighted based on the overall valuation of property in their respective communities. The County Sheriff and two Registers of Deeds (one for the Northern District at Lowell and another for the Southern District at Cambridge) are each elected to serve six-year terms. Besides the employees of the Sheriff's Office and the two Registries of Deeds, the county had a Maintenance Department, a Security Department, some administrative staff in the Treasurer's and Commissioners' Offices, and the employees of the hospital. The county government also owned and operated the Superior Courthouse, one of which was formerly in Cambridge (since