Fixed badly formed loop to extract the variable name and equation.
Added the ability to do multiple equations at once.