Added scaleValue function to utils