Bug fix -- cutoff was not being passed correctly when test.detfn was TRUE.