What was the impact of incorporating the sharia into the legal system?