CPID Algorithm 6.9