Use a global namespace instead of class variables for the scheduler to
allow for proper flushing