Optimization runs, has not been tested for correctness (probably not)