Added "psychophysics" code.