Added window to viterbi