Main, scheduler, task utils