Use CG's Quad curve function only.
Remove redundant code.