Viterbi now appears to be working