Added parameter for the state of the PID