Changed task_scheduler back to the original