Curve changed to CatMull with faster implementation