Added a discard argument to macrorun.