Cognitive flexibility, the ability to adjust one's way of thinking or behavior as a situation changes, is known to gradually decline with age or due to some conditions, including Alzheimer's disease, Parkinson's disease, schizophrenia and substance use disorders. One aspect of cognitive flexibility is being able to switch between different tasks without becoming distracted and losing focus.