Fixing CurveUpdate method
Updating the functionLib