Changed and tested the optimization passes.