Update cut code.