Bill would add flexibility to criminal sentences