Started the tasks in main