Added bezier curve functionality.