Modified to study deanes analytic solution.