Fix bug when scale = T and add allowParallel argument