Copy and paste solve, vars, and eval into assignment.