Sequencing a series of behavioral and emotional states.