Organize task_scheduler