Shari'a law has been installed by various military regimes, and its application to non-Muslims in the capital was a contentious issue during the negotiations, but it and the other major issues underlying the north–south conflict have been largely resolved in the agreements.[citation needed] Shari'a is to continue to be the basis of the national legal system as it applies in the north; national legislation applicable to the south is to be based on "popular consensus, the values, and the customs of the people." In states or regions where a majority hold different religious or customary beliefs than those on which the legal system is based, the national laws may be amended to accord better with such beliefs. Throughout the country, the application of Shari'a to non-Muslims is to be limited, and courts may not exercise their discretion to impose the harsher physical forms of Shari'a penalties on non-Muslims.