Spheroid fit and demo code.