Support remote command before-after