Added filter to markov