Psychotropic medication affects cognition and brain function, making it a potential confounder in functional neuroimaging studies of psychiatric patients.