Added support for the new curveOptions syntax.