Update markov to new module