Implemented Reference Implementation based on MPC.