Cleaning up the solution.