Trey Hedden and John Gabrieli, two neuroscientists from MIT, studied what happens in the brain when people are distracted by internal thoughts when doing difficult tasks. They found that lapses in attention impair performance, independent of what the task is, and that these lapses in attention involve activating the medial prefrontal cortex.

