Produce the markov chain and store it