Chronic pain and cognitive function.