Added a function that allows for adding points to curves.