Renamed markov to gen.