Added option to rescale variable