Added initial support for creating the markov chains