Change pfiltering's return value to be consistent with viterbi