Commit before starting to optimize.