Added first part of BSpline