Switched to analytical solution of system of equations.