Finish optimizing.