Ah! Now we just need to merge this code with Solver to create global optimization!