CN - Addition of generic pid control functions. Not incorporated into the control at this stage.