Changes to execute the PID controller with delay in a task