Each overseas territory has its own legal system independent of the United Kingdom. The legal system is generally based on English common law, with some distinctions for local circumstances. Each territory has its own attorney general, and court system. For the smaller territories, the UK may appoint a UK-based lawyer or judge to work on legal cases. This is particularly important for cases involving serious crimes and where it is impossible to find a jury who will not know the defendant in a small population island.