Working on markov stuff, as well as other random changes.