Modified kth markov