The brain's prefrontal cortex is thought to be the seat of cognitive control, working as a kind of filter that keeps irrelevant thoughts, perceptions and memories from interfering with a task at hand.