Changing scale_value to snap to lowest or highest
Fixing gradient_value