The legislation will force criminals to come up from their court cell and attend sentencing hearings.