Changed colour ramp function