Curve utils

Not documented yet.