Replaced schedule() with init(), so that later we can move instantiation of Tasks into it
Moved instantiation into init()