Modified the re-scaling.