Finished the solver for the ODE used in the Townes profile.