Update the solution.