Added bezier curve functions