Markov heavily optimized and improved.