Sandy, you could do this instead with Solver. It would probably be faster.

You could also automate Solver to do it.