New variable to turn on and off the dynamic main task
Update dynamic main task