Added class GlobalScheduler as a global timer.