Trying to build the FsmUpdate_p code