Added member function to easily get values in solution.