Made sure end point is included in generated curve