Added function for calculating psychometric performance.