Adding flexibility to Markov Switching models. (December 2016)