Better gamma ramp function