Modified UpdateCommand and PermissionCommand again.