Add criterion argument to the pstpm2 function