The beginning of the optimizer