There is also a United States Attorney in each district, who acts as the federal government's lawyer in the district, both prosecuting federal criminal cases and defending the government (and its employees) in civil suits against them; the U.S. Attorney is not employed by the judicial branch but by the Department of Justice, part of the executive branch.There is also a Federal Public Defender who represents people charged with federal crimes who cannot afford to hire their own lawyers; some FPDs cover more than one judicial district.Each district also has a United States Marshal who serves the court system.Three territories of the United States — the Virgin Islands, Guam, and the Northern Mariana Islands — have district courts that hear federal cases, including bankruptcy cases.Only two districts have jurisdiction over areas outside the state in which the court sits: From 1790 to 1840 judicial district offices were responsible for census activities, which were in turn conducted by the United States Marshal Service.