Add solveqns with a while loop.