Longitudinal Measurement of Cognitive Functioning in Mental Patients