Removed globals from rmt:send-receive-orig