Improved shallow_curve