Run main task.