How cognition controls health and disease