Added a Quadratic function interface.