The Influence of Emotions on Cognitive Flexibility.