Cognitive function and mindfulness