Updated scheduler to use new provider/event interfaces.