Plugin API: Add RmReplaceVariables function