Add support for multiple solutions.