Warnings removed + common viterbi