Updated bezier functions