Cognitive systems and their control