Update for optimize command.