Adding cPS variables

Added some lines fixed the 0 issue