Add 'params' argument to mrExec-calling functions and add check for global vars