Added priorities to solutions.