Now passing extra arguments to solve()