Current version of permutation based method