Extended Markov Models