New laws alter Scotland's justice system