Removed Ramp function, logic seems buggy