Changed MarkovChain API slightly