Some changes to update cmd.