Added functions for bezier curves.