Add curvature() to server (untested)