Please confer the Master thesis for more information on the CPS implementation