All of the initialization, done. Now for the optimization and generation.