Cognitive and affective control