2008 relocated to Woburn.) and one in Lowell; and the defunct Middlesex County Hospital in the city of Waltham. The legislation abolishing the Middlesex County executive retained the Sheriff and Registers of Deeds as independently elected officials, and transferred the Sheriff's Office under the state Department of Public Safety and the two Registry of Deeds offices to the Massachusetts Secretary of State's Office. Additionally, all county maintenance and security employees were absorbed into the corresponding staffs of the Massachusetts Trial Court. The legislation also transferred ownership of the two Superior Courthouses to the Commonwealth of Massachusetts. The hospital was closed. Finally, the office of County Commissioner was immediately abolished and the office of County Treasurer was abolished as of December 31, 2002. Any county roads transferred to the Commonwealth as part of the dissolution. The other administrative duties (such as Sheriff, Department of Deeds and court system, etc.) and all supporting staff were transferred under the Commonwealth as well. Administrative structure today Records of land ownership in Middlesex County continue to be maintained at the two Registries of Deeds. Besides the Sheriff and the two Registers of Deeds, the Middlesex District Attorney, the Middlesex Register of Probate and the Middlesex Clerk of Courts (which were already part of state government before the abolition of Middlesex County government) are all elected countywide to six-year terms. In Middlesex County (as in the entirety of the Commonwealth of Massachusetts), the governmental functions such as property tax assessment and collection, public education, road repair and maintenance, and elections were all conducted at the municipal city and town level and not by the county government. In 2012 the 22-story Superior Court Building in Cambridge which was transferred from the abolished Executive County government was sold by the Commonwealth of Massachusetts. Due to its transfer from state control, many local residents had tried to force the private developers to reduce the overall height of the structure. Even following abolition of the executive branch for county government in Middlesex, communities are still granted a right by the Massachusetts state legislature to form their own regional compacts for sharing of services and costs thereof. Geography According to the U.S. Census Bureau, the county has a total area of , of which is land and (3.5%) is water. It is the third-largest county in Massachusetts by land area. It is bounded southeast by the Charles River, and drained by