Revised to pass KC parameters KCID and isPI in token