Take into account permutations. Does not work either :-(