Stabilized sphinx and still working on numerical algorithms