Globalize the scheduler variable