Added a ramp function