Started adding Piecewise curves