Added a bit of curve functionality.