Revert "Removing global event scheduler."

This reverts commit 9d7cc48c2756027a76c054dfc15dc8327ad40286.