Reordered optimization phases.