Added logic to cycle thru the Kp
's for each of R,P,Y