Markov chains, and env variables