Psychopathology and function