Changed shaping script